Skip to content

Instantly share code, notes, and snippets.

@floam
Last active April 2, 2021 23:39
Show Gist options
  • Save floam/7ec60b1f02f37504002171d60b9ad06b to your computer and use it in GitHub Desktop.
Save floam/7ec60b1f02f37504002171d60b9ad06b to your computer and use it in GitHub Desktop.
# 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
@floam
Copy link
Author

floam commented Apr 2, 2021

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

image

@floam
Copy link
Author

floam commented Apr 2, 2021

Big Sur, 440:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment