summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-03-15 10:36:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-03-15 10:36:01 +0000
commite891a3c7cd7354263d02a419fb86cc74f6e96a47 (patch)
treeaf3309332e8dd5ced5b139681191717bbe4ad7ca /usr.bin/tmux/tty.c
parenteffb2a3109325115c6e2afd043941df391e18964 (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 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index ad27523acaf..12810623524 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.120 2012/03/15 09:22:31 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.121 2012/03/15 10:36:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;