Skip to content

Instantly share code, notes, and snippets.

@gchiam
Last active February 7, 2017 04:26
Show Gist options
  • Save gchiam/1e24dd3e3ed78e42339b329396cbcd6a to your computer and use it in GitHub Desktop.
Save gchiam/1e24dd3e3ed78e42339b329396cbcd6a to your computer and use it in GitHub Desktop.
Italics in Item2
infocmp xterm-256color > /tmp/xterm-256color.terminfo
cp /tmp/xterm-256color.terminfo /tmp/xterm-256color.terminfo.origial # backup
printf '\tsitm=\\E[3m, ritm=\\E[23m,\n' >> /tmp/xterm-256color.terminfo
tic /tmp/xterm-256color.terminfo
infocmp screen-256color > /tmp/screen-256color.terminfo
cp /tmp/screen-256color.terminfo /tmp/screen-256color.terminfo.origial # backup
printf '\tsitm=\\E[3m, ritm=\\E[23m,\n' >> /tmp/screen-256color.terminfo
tic /tmp/screen-256color.terminfo
To test:
echo `tput sitm`italics`tput ritm`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment