textual
textual copied to clipboard
After stopping a debugged app in VS Code it writes the coordinates of the mouse to the terminal
I had to record this one because it would be very hard to describe.
I've made a basic app and started it in VS Code under the integrated terminal. It renders nicely. I stopped the app by clicking the 'stop' button in VS Code (instead of exiting the app nicely) and afterward anytime I move the mouse inside the VS Code terminal window it's writing the coordinates to the shell prompt!
When you kill the processes, Textual doesn't have the opportunity to reset mouse input. Your only option is to type "reset" at the prompt.
Don't think there is much else we can do about that I'm afraid.
Is there anything VS Code can do?
Maybe. The debugger could write the escape codes to restore the terminal. No harm in doing that, and it would be transparent for the user.
Related: https://github.com/microsoft/vscode/issues/166385