From cc09fd9bd99c081f9bb24123516b87a9b5f44722 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 12 Oct 2022 11:52:52 +0200 Subject: [PATCH] Add italic support to the TERMINFO database --- terminal-italics.terminfo | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 terminal-italics.terminfo diff --git a/terminal-italics.terminfo b/terminal-italics.terminfo new file mode 100755 index 0000000..a15022f --- /dev/null +++ b/terminal-italics.terminfo @@ -0,0 +1,34 @@ +#!/usr/bin/env tic -o ~/.terminfo +# +# Add escape sequences for italic to the TERMINFO database. +# +# Two ways to install: +# +# 1. Execute this file. +# +# chmod +x terminal-italics.terminfo +# ./terminal-italics.terminfo +# +# +# 2. Run tic yourself. +# +# tic -o ~/.terminfo terminal-italics.terminfo +# +# +# Note: by writing to the home folder, we override the default themes. 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. +# +# References: +# +# https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/ +# https://gist.github.com/sos4nt/3187620?permalink_comment_id=2905187#gistcomment-2905187 +# +xterm-256color|xterm with 256 colors and italic, + sitm=\e[3m, ritm=\e[23m, + use=xterm-256color, +tmux-256color|tmux with 256 colors and italic, + sitm=\e[3m, ritm=\e[23m, + use=screen-256color, +