From d037c33645e9229b1067684c26cb1c82382f55ed Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Sun, 20 Sep 2026 22:39:09 +0100 Subject: [PATCH] regress: update input-replies.sh's primary DA reply for ENABLE_IMAGES With ENABLE_IMAGES compiled in, the primary DA reply correctly grows from "\033[?1;2c" (7 bytes) to "\033[?1;2;4c" (9 bytes), advertising sixel support. The test still expected the old byte count, so it read only the first 7 bytes of the new reply and reported the truncation point as a corrupted terminator. Check #{image_support} and expect whichever reply matches the build. Co-Authored-By: Claude Sonnet 5 --- regress/input-replies.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/input-replies.sh b/regress/input-replies.sh index 5fc77f843..1f260ca00 100644 --- a/regress/input-replies.sh +++ b/regress/input-replies.sh @@ -60,7 +60,11 @@ query_timeout() query "dsr-ok" '^[[0n' '\033[5n' 4 '' query "dsr-cursor" '^[[1;1R' '\033[6n' 6 '' -query "da-primary" '^[[?1;2c' '\033[c' 7 '' +if [ "$($TMUX display-message -p '#{image_support}')" = 1 ]; then + query "da-primary" '^[[?1;2;4c' '\033[c' 9 '' +else + query "da-primary" '^[[?1;2c' '\033[c' 7 '' +fi query "da-secondary" '^[[>84;0;0c' '\033[>c' 10 '' query "decrqm-irm-reset" '^[[4;2$y' '\033[4$p' 7 '' query "decrqm-irm-set" '^[[4;1$y' '\033[4$p' 7 '\033[4h'