textual
textual copied to clipboard
Mouse not working in vscode windows terminal
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)
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?
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
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.
@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. :-)
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.