Add support for overline (SGR 53), from Ricardo Banffy.

This commit is contained in:
nicm
2019-05-13 20:10:23 +00:00
parent 1b0512aa7e
commit 1ee944a19d
7 changed files with 20 additions and 3 deletions

2
tty.c
View File

@ -2199,6 +2199,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
tty_putcode(tty, TTYC_INVIS);
if (changed & GRID_ATTR_STRIKETHROUGH)
tty_putcode(tty, TTYC_SMXX);
if (changed & GRID_ATTR_OVERLINE)
tty_putcode(tty, TTYC_SMOL);
if ((changed & GRID_ATTR_CHARSET) && tty_acs_needed(tty))
tty_putcode(tty, TTYC_SMACS);
}