aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2019-11-14 15:37:19 +0000
committernicm <nicm>2019-11-14 15:37:19 +0000
commit16b77194182569cad8f34a4cf1fa494409900236 (patch)
treefcc3005dd69015053785eb6aa2357de651beabde /tty-keys.c
parent2dbf062a891e992b438a0923b9ffd79638014872 (diff)
downloadrtmux-16b77194182569cad8f34a4cf1fa494409900236.tar.gz
rtmux-16b77194182569cad8f34a4cf1fa494409900236.tar.bz2
rtmux-16b77194182569cad8f34a4cf1fa494409900236.zip
Fix parsing of DA with only one argument in the response and add 65 for VT520.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index f70b2c8d..66f0201a 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -1040,7 +1040,9 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
b = strtoul(endptr + 1, &endptr, 10);
if (*endptr != '\0' && *endptr != ';')
b = 0;
- } else
+ } else if (*endptr == '\0')
+ b = 0;
+ else
a = b = 0;
/* Store terminal type. */
@@ -1064,6 +1066,9 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
case 64:
type = TTY_VT420;
break;
+ case 65:
+ type = TTY_VT520;
+ break;
}
tty_set_type(tty, type);