summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2020-01-28 10:59:29 +0000
committernicm <nicm>2020-01-28 10:59:29 +0000
commit90e962fff8f4d251cdf7fcc653caa34973c82d91 (patch)
treedcde9271394f87819a0ed90a62abf86457f4c5fd /tty-keys.c
parentf165221dc4641837ee9f589bb666d310a495904c (diff)
Add support for the iTerm2 DSR 1337 sequence to get the terminal version.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 968f67ca..987fd1b0 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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);