tmux: enable italic support
This commit is contained in:
parent
5660e9c2dd
commit
6b19e4587f
2 changed files with 4 additions and 2 deletions
|
@ -58,9 +58,10 @@ setw -g mouse on # enable mouse support
|
||||||
setw -g pane-base-index 1 # start pane numbering from 1
|
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
|
# 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.
|
# Report true color support to programs.
|
||||||
# https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour
|
# https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
rst="$(tput sgr0)"
|
rst="$(tput sgr0)"
|
||||||
|
|
||||||
printf '%s\n' "$(tput bold)This text has the bold attribute.${rst}"
|
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 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 smso)This text has the standout (smso) attribute.${rst}"
|
||||||
printf '%s\n' "$(tput smul)This text has the underline (smul) attribute.${rst}"
|
printf '%s\n' "$(tput smul)This text has the underline (smul) attribute.${rst}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue