diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-11 07:14:54 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-11 07:14:54 +0000 |
commit | f0843d21736f8e36208e965527ae1219a7bbdde7 (patch) | |
tree | 64f1f0c538bc473359149cc85c52bf60a26a771d | |
parent | 457147d59d3e807309b7fdb2583d29278ae6acaa (diff) | |
download | rtmux-f0843d21736f8e36208e965527ae1219a7bbdde7.tar.gz rtmux-f0843d21736f8e36208e965527ae1219a7bbdde7.tar.bz2 rtmux-f0843d21736f8e36208e965527ae1219a7bbdde7.zip |
Entry on italics from Tiago Resende.
-rw-r--r-- | FAQ | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -371,5 +371,33 @@ If it is not a character device or has incorrect permissions, it can typically be recreated with: cd /dev && rm null && ./MAKEDEV null + +* vim or $otherprogram displays reverse video instead of italics, even though + tmux displays italics just fine in the status line. What's wrong? + +Screen's terminfo description lacks italics mode and has standout mode in its +place. To make applications aware that tmux supports italics, you'll need to +create a new terminfo file with modified smso, rmso, sitm and ritm entries: + + $ mkdir $HOME/.terminfo/ + $ screen_terminfo="screen" + $ infocmp "$screen_terminfo" | sed \ + -e 's/^screen[^|]*\|[^,]*,/screen-it|screen with italics support,/' \ + -e 's/smso=[^,]*,/smso=\\E[7m,/' \ + -e 's/rmso=[^,]*,/rmso=\\E[27m,/' \ + -e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > /tmp/screen.terminfo + $ tic /tmp/screen.terminfo + +And tell tmux to use it in ~/.tmux.conf: + + set -g default-terminal "screen-it" + +If your terminal supports 256 colors, use: + + $ screen_terminfo="screen-256color" + +instead of "screen". See the FAQ entry about 256 colors support for more info. +Also note that tmux will still display reverse video on terminals that do not +support italics. -$Id: FAQ,v 1.41 2010-12-15 23:31:30 nicm Exp $ +$Id: FAQ,v 1.42 2011-04-11 07:14:54 nicm Exp $ |