diff options
author | 2012-11-22 14:26:04 +0000 | |
---|---|---|
committer | 2012-11-22 14:26:04 +0000 | |
commit | 3e0afa48d22ca72f7dad31d02fd4500ee39cd10a (patch) | |
tree | 2d8cea999985d431d0866966d5ed2c3058a8c24c /usr.bin/tmux/tty.c | |
parent | Don't need to send DECSL on detaching now, the code using higher levels (diff) | |
download | wireguard-openbsd-3e0afa48d22ca72f7dad31d02fd4500ee39cd10a.tar.xz wireguard-openbsd-3e0afa48d22ca72f7dad31d02fd4500ee39cd10a.zip |
Instead of worrying about xterm version, send DA and read DEC service
class which is more likely to be useful. Not used for anything yet
anyway.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 46a0a24284b..20c9b67a672 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.143 2012/11/22 14:10:53 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.144 2012/11/22 14:26:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -224,7 +224,7 @@ tty_start_tty(struct tty *tty) tty_puts(tty, "\033[?1000l"); if (tty_term_has(tty->term, TTYC_XT)) - tty_puts(tty, "\033[>c"); + tty_puts(tty, "\033[c"); tty->cx = UINT_MAX; tty->cy = UINT_MAX; @@ -240,14 +240,6 @@ tty_start_tty(struct tty *tty) } void -tty_set_version(struct tty *tty, u_int version) -{ - if (tty->xterm_version != 0) - return; - tty->xterm_version = version; -} - -void tty_stop_tty(struct tty *tty) { struct winsize ws; |