aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-18 02:25:26 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-18 02:25:26 +0000
commitdf31f1dfc9c3bc0d638648de23dc276ed03d3347 (patch)
tree768c91b7761ed5974e8c4e0300810a80771dc4f0 /tty-keys.c
parent0f9f30de2e4fcee3040a2f291cfd3bb8dca2b4ff (diff)
downloadrtmux-df31f1dfc9c3bc0d638648de23dc276ed03d3347.tar.gz
rtmux-df31f1dfc9c3bc0d638648de23dc276ed03d3347.tar.bz2
rtmux-df31f1dfc9c3bc0d638648de23dc276ed03d3347.zip
Sync OpenBSD patchset 1070:
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 'tty-keys.c')
-rw-r--r--tty-keys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index fcf3a529..7d49229c 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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);
}