summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2023-04-25 09:24:44 +0000
committernicm <nicm>2023-04-25 09:24:44 +0000
commit551e0c36d95b1a9de1febf8f062fdc9d64b682df (patch)
tree650451b790ae3bf740c59ee988b3f172f9612426 /tty.c
parent48eba4c195165fb0f51afeb8b1eb56739b31431d (diff)
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.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 2 insertions, 0 deletions
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