From fc8d3f7a5645ec1d55d361911443fad1867fe8cb Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Fri, 31 Aug 2012 09:22:50 +0000 Subject: [PATCH] Sync OpenBSD patchset 1166: 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 5caf5168..a4128714 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); }