diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-17 22:56:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-17 22:56:05 +0000 |
commit | b31136b9aca41c85f9c2d81b587c08c1b516895c (patch) | |
tree | 9e79c1be3afa1df76e88ddd352e9f0dbea5734cf /usr.bin/tmux/tty-keys.c | |
parent | 0c3f7269cde53343e63855fa651fd174930c4b24 (diff) |
On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for
scrolling the region in panes (if the large region check isn't
hit). With help from Ailin Nemui.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index c42cb9c7722..f5ce2b77359 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.36 2012/03/17 18:24:07 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.37 2012/03/17 22:56:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -728,8 +728,7 @@ tty_keys_device(struct tty *tty, const char *buf, size_t len, size_t *size) a = b = 0; log_debug("received xterm version %u", b); - if (tty->xterm_version == 0) - tty->xterm_version = b; + tty_set_version(tty, b); return (0); } |