summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-03-15 10:36:00 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-03-15 10:36:00 +0000
commitc8c0d681285938a0f8f6aaa34f85ca50c5494f1d (patch)
tree46a613f717ed4c51ad825ca9ca1b531dfd8fcfdc /tty.c
parent523ed3873dfa15cf625ce3d013efd8770974f59d (diff)
Send secondary DA to terminals with XT in terminfo when starting up and
parse it to work out the xterm version.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index 5494ad4d..bf5eac09 100644
--- a/tty.c
+++ b/tty.c
@@ -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;