There’s lots of partial/out-of-date info on this so I thought I’d post what actually worked for me.

Configure terminfo

xterm-256color-italic|xterm with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,

And tmux-256color.terminfo:

tmux-256color|tmux with 256 colors,
ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
khome=\E[1~, kend=\E[4~,
use=xterm-256color, use=screen-256color,

That third line is necessary to make…

Jake Barnes

Software Engineer in Melbourne, Australia — https://jakebarn.es

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store