diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-08-31 09:22:50 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-08-31 09:22:50 +0000 |
commit | fc8d3f7a5645ec1d55d361911443fad1867fe8cb (patch) | |
tree | 8d6a715956f07e70fea908952396a4dd4821beff /tty-keys.c | |
parent | 56e37487a81f07b4c8f409e72dea6c5b746de4b3 (diff) | |
download | rtmux-fc8d3f7a5645ec1d55d361911443fad1867fe8cb.tar.gz rtmux-fc8d3f7a5645ec1d55d361911443fad1867fe8cb.tar.bz2 rtmux-fc8d3f7a5645ec1d55d361911443fad1867fe8cb.zip |
Sync OpenBSD patchset 1166:
xterm won't reach version 500 for a while so set that as the upper limit.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |