From d39c58c01c7d8fce29ee00632bf12a6b47ce942a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Aug 2012 10:08:11 +0000 Subject: [PATCH] xterm won't reach version 500 for a while so set that as the upper limit. --- tty-keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tty-keys.c b/tty-keys.c index c90eb71e..cb3b4e03 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -734,7 +734,8 @@ 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); - tty_set_version(tty, b); + if (b < 500) + tty_set_version(tty, b); return (0); }