-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse input from PDCurses application not working #7594
Comments
If it helps in diagnosis, PDCurses uses |
So, this is a /duplicate of #376! PDCurses applications are Windows applications using the Win32 console APIs to read mouse events, and we don't currently have support in the translation layer (which is also used by ssh and other terminal emulators on Windows) for translating Win32 mouse events from VT mouse events. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Ok, I'm subscribing to the other issue. Thanks for confirming. Are there other libraries that are currently able to achieve this in Windows Terminal? (PDCurses was the main library I found that has a working Windows implementation. ncurses seems to not support Windows.) |
That's a good question. I'm not sure of that off the top of my head... |
What does "VT" stand for? |
Ah, sorry. "Virtual Terminal". I typically call the in-band signalling sequences that terminals use to communicate (and applications use to communicate with terminals) "VT", though I can't determine why I do that. They do things like set color, request input mode changes ("encode these keys differently", "i want mouse input", etc.), and a whole heap of other things. Broadly and loosely, they're the cross-platform alternative to the Win32 console APIs. Where somebody might say |
(This is very broad, and very loose, but it serves to illustrate the point. jdebp could almost certainly furnish a better explanation than the one that I spent 50 seconds on 😄) |
So, I could use this "Virtual Terminal" from my app to get mouse events in Windows Terminal, as a workaround until WT supports it? If so, what APIs would I be looking at? |
"VT" in this context usually comes from the product names of the DEC VT range of computer terminals, the VT05 to the VT525. It stands for "video terminal", in opposition to a paper or a hardcopy terminal. |
Environment
Any other software?
PDCurses: https://github.com/wmcbrine/PDCurses @ 618e0aa
Steps to reproduce
Expected behavior
I'm expecting the receive mouse input to the application. This works in normal
cmd.exe
:Actual behavior
In Windows Terminal the mouse events doesn't reach the application, instead a text selection is made:
The text was updated successfully, but these errors were encountered: