From 6d14264ccebaf1d5378915edf74156571741720e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 3 Feb 2021 15:58:14 -0500 Subject: [PATCH] Remove the terminfo italics stuff as this is no longer necessary --- README.md | 4 ---- tmux-italics-terminfo | 26 -------------------------- 2 files changed, 30 deletions(-) delete mode 100755 tmux-italics-terminfo diff --git a/README.md b/README.md index ffd9f7d..803cd25 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,6 @@ | `W` | Write scrollback buffer to file | | `Alt-[0-9]` (no prefix) | Switch directly to the given window | -## Italics Support - -Tmux supports italics if your terminal does, but the terminfo files _screen_ and _screen-256color_ don't advertise this, and most programs will display reversed text when it should be italics. To fix this, run: `tmux-italics-terminfo`, then follow the instructions it displays by changing `set-option -g default-terminal "screen-256color"` to `set-option -g default-terminal "screen-256color-it"` in your _tmux.conf_. You'll want to make sure your _/etc/bash.bashrc_, _/etc/dircolors_, possibly **vim** and any other terminal applications that check the `$TERM` variable have _screen-it_ and _screen-256color-it_ added. - ## Credits * Written by Kevin MacMartin: [GitHub Projects](https://github.com/prurigro) | [Arch Linux AUR Packages](https://aur.archlinux.org/packages/?SeB=m&K=prurigro) diff --git a/tmux-italics-terminfo b/tmux-italics-terminfo deleted file mode 100755 index 4965c3c..0000000 --- a/tmux-italics-terminfo +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -SRC_TERMINFO="screen-256color" -TMP_TERMINFO="/tmp/${SRC_TERMINFO}.terminfo" - -echo -n "Generating ${SRC_TERMINFO}-it... " - -[[ -d "${HOME}/.terminfo" ]] \ - || install -d "${HOME}/.terminfo/" -[[ -f "${HOME}/.terminfo/s/${SRC_TERMINFO}-it" ]] \ - && rm "${HOME}/.terminfo/s/${SRC_TERMINFO}-it" - -infocmp "$SRC_TERMINFO" | sed \ - -e 's/^screen[^|]*|[^,]*,/'${SRC_TERMINFO}'-it|'${SRC_TERMINFO}' with italics support,/' \ - -e 's/%?%p1%t;3%/%?%p1%t;7%/' \ - -e 's/smso=[^,]*,/smso=\\E[7m,/' \ - -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \ - -e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > "$TMP_TERMINFO" -tic "$TMP_TERMINFO" - -rm "$TMP_TERMINFO" - -[[ ! -f "${HOME}/.terminfo/s/${SRC_TERMINFO}-it" ]] && echo "Error!" && exit 1 - -echo -e "Done!\n" -echo -e "Now in your tmux.conf, change:\n\n set-option -g default-terminal \"screen-256color\"\n\nto:\n\n set-option -g default-terminal \"screen-256color-it\""