Be more specific in the DSR we are looking for so it doesn't get

confused with mouse sequences. Also set a flag and don't bother checking
for it if we have already seen it (same for DA), and don't check if we
never asked for it.
This commit is contained in:
nicm
2020-01-13 08:12:53 +00:00
parent 04eee2410d
commit 835a6c0cf0
3 changed files with 19 additions and 2 deletions

5
tty.c
View File

@ -327,8 +327,9 @@ tty_start_tty(struct tty *tty)
tty->flags |= TTY_FOCUS;
tty_puts(tty, "\033[?1004h");
}
tty_puts(tty, "\033[c\033[1337n");
}
tty_puts(tty, "\033[c\033[1337n"); /* DA and DSR */
} else
tty->flags |= (TTY_HAVEDA|TTY_HAVEDSR);
tty->flags |= TTY_STARTED;
tty_invalidate(tty);