aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-18 01:55:45 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-18 01:55:45 +0000
commit070d266aae6dd309d3fb9c4fab7d30f0fbc88854 (patch)
treed31640c8955a0e92359fed73be52586703bf79e3 /tty.c
parent3b990ef6b20a5273a1f0c555cfa812d65312ceae (diff)
downloadrtmux-070d266aae6dd309d3fb9c4fab7d30f0fbc88854.tar.gz
rtmux-070d266aae6dd309d3fb9c4fab7d30f0fbc88854.tar.bz2
rtmux-070d266aae6dd309d3fb9c4fab7d30f0fbc88854.zip
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.
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 31ee36f4..958d8cae 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;