mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
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:
parent
d451502676
commit
16bdd970dc
4 changed files with 23 additions and 5 deletions
12
tty.c
12
tty.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue