From 551e0c36d95b1a9de1febf8f062fdc9d64b682df Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 25 Apr 2023 09:24:44 +0000 Subject: [PATCH] Invalidate cached tty state after changing features since they may change what the terminal can do and need mouse sequences or similar to be sent again, GitHub issue 3513. --- tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty.c b/tty.c index 62707f2a..1003c6b0 100644 --- a/tty.c +++ b/tty.c @@ -482,6 +482,8 @@ tty_update_features(struct tty *tty) tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS)); if (tty->term->flags & TERM_VT100LIKE) tty_puts(tty, "\033[?7727h"); + + tty_invalidate(tty); } void -- 2.11.4.GIT