From 70cf8b9bfe60d688b406acda090b8d61b5dfe555 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 7 Sep 2023 07:19:21 +0000 Subject: [PATCH] Accept 65 for VT525 as well. --- usr.bin/tmux/tty-keys.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 38b4fe43540..dc962db923a 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.168 2023/09/02 20:03:10 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.169 2023/09/07 07:19:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1314,11 +1314,16 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len, break; } - /* Add terminal features. */ + /* + * Add terminal features. Technically, VT420 and VT525 do not support + * SIXEL, but some modern terminals report it anyway so we accept it + * here too. + */ switch (p[0]) { case 62: /* VT220 */ case 63: /* VT320 */ case 64: /* VT420 */ + case 65: /* VT525 */ for (i = 1; i < n; i++) { log_debug("%s: DA feature: %d", c->name, p[i]); if (p[i] == 4) -- 2.20.1