Add support for the iTerm2 DSR 1337 sequence to get the terminal version.

This commit is contained in:
nicm
2020-01-28 10:59:29 +00:00
parent f165221dc4
commit 90e962fff8
2 changed files with 10 additions and 1 deletions

View File

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