summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-03-17 22:56:04 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-03-17 22:56:04 +0000
commitd8805af66bb876d762248d1695872eca3296f0e6 (patch)
tree7c152fcb1921509834e88c6ada100c1f969412a9 /tty-keys.c
parent46210344a62b079ff61435b978da41a0f92caf3a (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 '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 37265dce..c5b85ce1 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);
}