Send secondary DA to terminals with XT in terminfo when starting up and

parse it to work out the xterm version.
This commit is contained in:
Nicholas Marriott
2012-03-15 10:36:00 +00:00
parent 523ed3873d
commit c8c0d68128
4 changed files with 86 additions and 6 deletions

3
tty.c
View File

@ -211,6 +211,9 @@ tty_start_tty(struct tty *tty)
if (tty_term_has(tty->term, TTYC_KMOUS))
tty_puts(tty, "\033[?1000l");
if (tty_term_has(tty->term, TTYC_XT))
tty_puts(tty, "\033[>c");
tty->cx = UINT_MAX;
tty->cy = UINT_MAX;