From 897237cc978535da4d6ca2e7436905d4df087f78 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 23 Mar 2023 12:01:24 -0700 Subject: [PATCH] fix: disable mouse reporting for RIS/ResetTerminal sequence --- docs/changelog.md | 2 ++ term/src/terminalstate/performer.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index ccc8d23e9..9a7f3a307 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -45,6 +45,8 @@ As features stabilize some brief notes about them will accumulate here. #3303 #2879 #3323 * `window_frame.border_XXX` not correctly accounted for when initially sizing the window, or when applying font scaling to a window. #3333 +* `RIS` escape sequence (and `ResetTerminal` action) didn't disable mouse + event reporting. ### 20230320-124340-559cb7b0 diff --git a/term/src/terminalstate/performer.rs b/term/src/terminalstate/performer.rs index 9bf626aeb..4053780ed 100644 --- a/term/src/terminalstate/performer.rs +++ b/term/src/terminalstate/performer.rs @@ -678,6 +678,7 @@ impl<'a> Performer<'a> { self.application_keypad = false; self.bracketed_paste = false; self.focus_tracking = false; + self.mouse_tracking = false; self.mouse_encoding = MouseEncoding::X10; self.keyboard_encoding = KeyboardEncoding::Xterm; self.sixel_scrolls_right = false;