diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-08-21 10:08:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-08-21 10:08:12 +0000 |
commit | a3fba7c3ba1836075b2a1bea2d2df400383c97bd (patch) | |
tree | 099496078cf8e0d84afeef4195f843681b4ffcd1 /usr.bin/tmux/tty-keys.c | |
parent | 3db805be194eb3cd20493cc3aa8250dae0745c3d (diff) |
xterm won't reach version 500 for a while so set that as the upper limit.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 3d7b1ec3c65..8057a199987 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.42 2012/07/10 11:53:01 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.43 2012/08/21 10:08:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); } |