diff options
author | 2020-01-28 10:59:29 +0000 | |
---|---|---|
committer | 2020-01-28 10:59:29 +0000 | |
commit | 6e8cc4bce24c4c367b01cec21ae0df21cfe36689 (patch) | |
tree | 46f21ce784db375fc5f7ae6ce63b0d553cd46f57 /usr.bin/tmux/tty-keys.c | |
parent | Reduce a difference with portable tmux by adding the -V flag and (diff) | |
download | wireguard-openbsd-6e8cc4bce24c4c367b01cec21ae0df21cfe36689.tar.xz wireguard-openbsd-6e8cc4bce24c4c367b01cec21ae0df21cfe36689.zip |
Add support for the iTerm2 DSR 1337 sequence to get the terminal version.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 3075acb51bf..c2101ac45f4 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.120 2020/01/13 08:12:53 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.121 2020/01/28 10:59:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1099,7 +1099,7 @@ tty_keys_device_status_report(struct tty *tty, const char *buf, size_t len, return (-1); if (len == 2) return (1); - if (buf[2] != 'I') + if (buf[2] != 'I' && buf[2] != 'T') return (-1); if (len == 3) return (1); |