Support blinking cursor mode, both the xterm CSI ?12 h/l and (the

backwards) screen CSI 34 h/l. From Guanpeng Xu.
This commit is contained in:
nicm
2015-01-20 08:18:04 +00:00
parent d451502676
commit 16bdd970dc
4 changed files with 23 additions and 5 deletions

12
tty.c
View File

@ -482,10 +482,14 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
mode &= ~MODE_CURSOR;
changed = mode ^ tty->mode;
if (changed & MODE_CURSOR) {
if (mode & MODE_CURSOR)
tty_putcode(tty, TTYC_CNORM);
else
if (changed & (MODE_CURSOR|MODE_BLINKING)) {
if (mode & MODE_CURSOR) {
if (mode & MODE_BLINKING &&
tty_term_has(tty->term, TTYC_CVVIS))
tty_putcode(tty, TTYC_CVVIS);
else
tty_putcode(tty, TTYC_CNORM);
} else
tty_putcode(tty, TTYC_CIVIS);
}
if (tty->cstyle != s->cstyle) {