textual icon indicating copy to clipboard operation
textual copied to clipboard

Mouse not working in vscode windows terminal

Open hongshui3000 opened this issue 2 years ago • 4 comments

The mouse can work normally under the windows terminal, but the menu cannot be clicked with the mouse under the vscode windows terminal. I am using the demo program (python -m textual)

hongshui3000 avatar Oct 27 '22 08:10 hongshui3000

Hi! This is a known issue with the terminal of VSCode on Windows; if I attempt what you mention here on Windows I get the same effect, meanwhile the exact same thing on my Mac has the mouse working just fine in the VSCode Terminal.

We're going to do a wee bit more digging to see if we can find out the core cause for this.

Meanwhile, could I ask you to confirm things like:

  • Windows version
  • VSCode version

Also, have you tried this with some other mouse-aware terminal application? Do you see the same thing, or does that work?

davep avatar Oct 27 '22 09:10 davep

Windows version : windows 10 VSCode version : 1.72.2

Version: 1.72.2 (user setup) Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075 Date: 2022-10-12T22:15:18.074Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: No

hongshui3000 avatar Oct 27 '22 09:10 hongshui3000

For what it's worth, I've just done a simple test that didn't involve anything Textual. Picked a terminal application that responds to mouse (in this case vim), ran it in a normal Windows Terminal and confirmed that mouse events were processed as you'd expect. Then ran it under VSCode (yes, I did run vim inside VSCode!) and confirmed that mouse events were not responded to in the way you'd expect.

Conclusion being: this doesn't seem to be a Textual issue, this seems to be a Windows Terminal under VSCode under Windows 10 issue. However, we'll keep this open until we've confirmed the issue one way or another.

davep avatar Oct 27 '22 09:10 davep

@hongshui3000 Thanks for raising the issue in the VSCode repo; I was planning on doing the similar at some point this afternoon so you've saved me a job. :-)

davep avatar Oct 27 '22 11:10 davep

For the record, mouse support works on Windows 11.

It may have been fixed in a Windows 10 update. Either way, closing this issue since there isn't anything that can be done on the Textual side.

willmcgugan avatar Jan 10 '23 14:01 willmcgugan

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

github-actions[bot] avatar Jan 10 '23 14:01 github-actions[bot]