Sync OpenBSD patchset 1054:

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:
Tiago Cunha
2012-03-18 01:55:45 +00:00
parent 3b990ef6b2
commit 070d266aae
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;