From: nicm Date: Tue, 25 Apr 2023 09:24:44 +0000 (+0000) Subject: Invalidate cached tty state after changing features since they may X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=436e13f1a5c25b1f96cbe509b057b6cf5519ba32;p=openbsd 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. --- diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index f05bfea6a92..8e5b194cada 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.428 2023/03/27 08:31:32 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.429 2023/04/25 09:24:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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