Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A xterm-256color based TERMINFO that adds the escape sequences for italic
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
xterm-256color-italic|xterm with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,
@szurcher

This comment has been minimized.

Copy link

@szurcher szurcher commented Mar 6, 2014

Thanks for this!

@bric3

This comment has been minimized.

Copy link

@bric3 bric3 commented May 12, 2015

Note if you do SSH, environment may be passed on the remote and it will probable don't know this terminal. A possible solution on the local host is to alias ssh

alias ssh="TERM=xterm-256color ssh"
@dkarter

This comment has been minimized.

Copy link

@dkarter dkarter commented Jan 6, 2017

Thank you @bric3 that worked great for SSH connections! 💯

@branquito

This comment has been minimized.

Copy link

@branquito branquito commented Sep 29, 2017

Thank you!

@brandonkal

This comment has been minimized.

Copy link

@brandonkal brandonkal commented May 2, 2019

This is the first result in Google so here is a cleaner way:
Change line 11 to:

# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
#   tic -o ~/.terminfo xterm-256color.terminfo
#
#   Note: by writing to the home folder, we override the default 256color theme.
#   We could instead save this as another name, but that would report a terminal
#   that an ssh host does not understand, which causes issues with the delete key.
#
# Usage:
#
#   export TERM=xterm-256color
#
xterm-256color|xterm with 256 colors and italic,
	sitm=\E[3m, ritm=\E[23m,
	use=xterm-256color,

This avoids the need to add an ssh alias as the correct terminal will be reported to hosts.

@markpanado

This comment has been minimized.

Copy link

@markpanado markpanado commented Oct 27, 2020

Thanks for this! Solved my problem with hyper terminal and vim-gruvbox

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