textual icon indicating copy to clipboard operation
textual copied to clipboard

After stopping a debugged app in VS Code it writes the coordinates of the mouse to the terminal

Open tonybaloney opened this issue 1 year ago • 4 comments

I had to record this one because it would be very hard to describe.

screenshot 2022-11-14 at 14 17 58

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!

tonybaloney avatar Nov 14 '22 03:11 tonybaloney

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.

willmcgugan avatar Nov 14 '22 08:11 willmcgugan

Is there anything VS Code can do?

tonybaloney avatar Nov 14 '22 19:11 tonybaloney

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.

willmcgugan avatar Nov 14 '22 19:11 willmcgugan

Related: https://github.com/microsoft/vscode/issues/166385

tonybaloney avatar Nov 14 '22 22:11 tonybaloney

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

github-actions[bot] avatar Nov 17 '22 09:11 github-actions[bot]