3 ms·
In case anyone thinks they're doing something equivalent by making a screen-256color-italic terminfo with the right keys and making sure your terminal uses that
by tomsmeding 7y ago
In case anyone thinks they're doing something equivalent by making a screen-256color-italic terminfo with the right keys and making sure your terminal uses that, but is then surprised that it doesn't work, the linked tmux FAQ ie very important:
> As of tmux 2.1, if default-terminal is set to "screen" or matches " screen-* ", tmux will behave like screen and italics will be disabled.
This means that you must use a terminfo name that doesn't start with screen-*.
- JdeBP 7y agoThat's slightly misleading. The applications that get directed to a "screen-wibble" terminfo entry will behave as if they are running under screen, because there will be no terminfo ritm/sitm capabilities and they won't emit any control sequences for specifying italics. tmux's own behaviour does change, but that is secondary, and a bit of a bodge. (The applications will emit what they think is something else, but will end up emitting the ECMA-48 code for italics, so tmux refuses to recognize it.)