-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 differences when using ENABLE_VIRTUAL_TERMINAL_INPUT #15296
Comments
Is VT support enabled in conhost?
|
I am also concerned about this issue. Possibly due to backwards compatibility limitations, the only option on Windows is to rely solely on the Win32 Console API (ReadConsoleInput) to handle input events, excluding VT processing on input. This is the only way to get uniform behavior. This also applies to window/buffer size reports. I would be happy to be wrong. |
It wasn't set, so I just tried it - unfortunately it made no difference. (I think SetConsoleMode() is supposed to override that setting anyway.) Thanks. |
I'm not sure if this is related, but I have a transparent Webview2 window overlaid on top of all other windows. When I click in the transparent areas, my mouse clicks fall through to the window beneath (desired, expected behavior) in every single app (including conhost) except Windows Terminal. When Windows Terminal is beneath this transparent overlay, mouse clicking or dragging to select text etc doesn't work at all. Clicking in the tab bar doesn't work either, but right click for some reason works for bringing up the context menu. Notably, hovering over the '+' button (for opening a new tab) does not produce the default visual feedback. I've attached a .mp4 screen recording to demonstrate the issue: When I close or move away that transparent overlay, Windows Terminal once again responds to mouse. Windows Terminal version: 1.19.10821.0 |
Windows Terminal version
1.16.10261.0
Windows build number
Microsoft Windows [Version 10.0.19045.2846]
Other Software
No response
Steps to reproduce
Compile this C code as a console application, and try it in both conhost and Windows Terminal. (Move the mouse over the window.)
Expected Behavior
The same behaviour in both conhost and Windows Terminal.
Actual Behavior
In Windows Terminal, I receive mouse input only as virtual terminal input sequences. In conhost, I receive mouse input only as MOUSE_EVENT INPUT_RECORDs.
My guess is this is an intentional difference rather than a bug, but I wanted to ask some questions. I would like my program to work the same whether run in Windows Terminal or conhost. I would like to enable ENABLE_VIRTUAL_TERMINAL_INPUT to get VT sequences for key presses at least. Here are my questions:
Thanks
The text was updated successfully, but these errors were encountered: