From 6b19e4587f00b06ea45edb22c553288d914e4d2a Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 10 Oct 2022 10:32:46 +0200 Subject: [PATCH] tmux: enable italic support --- config/tmux/tmux.conf | 5 +++-- home/.local/bin/styletest | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 6fb7cc9..eabaa5e 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -58,9 +58,10 @@ setw -g mouse on # enable mouse support setw -g pane-base-index 1 # start pane numbering from 1 -# Set $TERM and force 256 colors. +# Set $TERM, force 256 colors, and enable italics. # https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-a-256-colour-terminal -set -g default-terminal 'screen-256color' +# https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round +set -g default-terminal 'tmux-256color' # Report true color support to programs. # https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour diff --git a/home/.local/bin/styletest b/home/.local/bin/styletest index 3f88fe9..b279efe 100755 --- a/home/.local/bin/styletest +++ b/home/.local/bin/styletest @@ -3,6 +3,7 @@ rst="$(tput sgr0)" printf '%s\n' "$(tput bold)This text has the bold attribute.${rst}" +printf '%s\n' "$(tput sitm)This text has the italics attribute.${rst}" printf '%s\n' "$(tput dim)This text has the dim attribute.${rst}" printf '%s\n' "$(tput smso)This text has the standout (smso) attribute.${rst}" printf '%s\n' "$(tput smul)This text has the underline (smul) attribute.${rst}"