mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
If the terminal supports sitm for italics, use it instead of standout
(smso). From Tiago Resende.
This commit is contained in:
7
tty.c
7
tty.c
@ -1218,7 +1218,12 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc)
|
||||
if (changed & GRID_ATTR_DIM)
|
||||
tty_putcode(tty, TTYC_DIM);
|
||||
if (changed & GRID_ATTR_ITALICS)
|
||||
tty_putcode(tty, TTYC_SMSO);
|
||||
{
|
||||
if (tty_term_has(tty->term, TTYC_SITM))
|
||||
tty_putcode(tty, TTYC_SITM);
|
||||
else
|
||||
tty_putcode(tty, TTYC_SMSO);
|
||||
}
|
||||
if (changed & GRID_ATTR_UNDERSCORE)
|
||||
tty_putcode(tty, TTYC_SMUL);
|
||||
if (changed & GRID_ATTR_BLINK)
|
||||
|
Reference in New Issue
Block a user