summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tty-keys.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 3ad80c3d..ef80abc4 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -1399,8 +1399,17 @@ tty_keys_device_attributes2(struct tty *tty, const char *buf, size_t len,
break;
}
- /* Add terminal features. */
+ /*
+ * Add terminal features. We add DECSLRM and DECFRA for some
+ * identification codes here, notably 64 will catch VT520, even though
+ * we can't use level 5 from DA because of VTE.
+ */
switch (p[0]) {
+ case 41: /* VT420 */
+ case 61: /* VT510 */
+ case 64: /* VT520 */
+ tty_add_features(features, "margins,rectfill", ",");
+ break;
case 'M': /* mintty */
tty_default_features(features, "mintty", 0);
break;