-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Mouse tracking is incorrectly disabled on exit #3876
Copy link
Copy link
Open
Labels
area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formattingDisplay and rendering: flickering, scrolling, line wrapping, output formatting
Metadata
Metadata
Assignees
Labels
area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formattingDisplay and rendering: flickering, scrolling, line wrapping, output formatting
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
When the CLI exits, my terminal can't scroll with the mouse anymore.
I used copilot to diagnose itself (yay).
The problem appears to be that while the CLI turns on mouse tracking:
The way it turns off leaves my terminal emulator (foot) in a bad place where it cannot scroll anymore:
I'm pretty sure that these events need to be done in a stack order, where the alt screen is turned off last because it was turned on first.
This appears to be a regression in 1.0.49-2 and above.
Affected version
1.0.63
Steps to reproduce the behavior
git logExpected behavior
My terminal can still scroll.
Additional context