Last active
April 2, 2021 23:39
-
-
Save floam/7ec60b1f02f37504002171d60b9ad06b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Seems supported in $TERM_PROGRAM_VERSION 370 | |
> cat nsterm-256color | |
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
xterm-256color|xterm with 256 colors and italic, | |
sitm=\E[3m, ritm=\E[23m, | |
use=xterm-256color, | |
> tic nsterm-256color | |
> ENV TERM=nsterm-256color tput sitm; echo italics |
By the way, the much smarter thing to do is grab the terminfo entry from the most current ncurses - Thomas Dickey maintains a entry for it as 'nsterm' which perfectly describes all features and keys supported by Terminal.app up to macOS 10.13.
This wasn't the case when I first posted this gist, but it does currently have the italics (and dim, which I didn't mention in the gist.)
TERM_PROGRAM_VERSION 440 does not respond to the simple echo $'\e[3mitalics\e[23m'
test. Sweet sweet regression.
It absolutely does @Artoria2e5. Check your shell, environment, uhh... something...
It might be a matter of how you are escaping the string, like using fish as my shell, I'd do this:
echo \e\[3mitalics\e\[23m
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure? Works here