xterm won't reach version 500 for a while so set that as the upper limit.

pull/1/head
Nicholas Marriott 2012-08-21 10:08:11 +00:00
parent 58e8e0eac8
commit d39c58c01c
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}