-
Notifications
You must be signed in to change notification settings - Fork 804
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
Native mouse support in Windows Terminal #103
Comments
If you’re using the Windows Linux Subsystem in Windows Terminal the mouse will work (you can enter the subsystem with Beyond that, I'm not entirely sure if Windows Terminal supports the mouse outside of WSL so we'll need to do some research here. Currently, we're only processing X10/X11 mouse events (which all unix-like systems support). |
But you did write support for usual win command line |
@irevenko If it's possible to add native mouse support in Windows we'll definitely do it. In the meantime, you're welcome to submit a PR which adds the functionality. |
If I remember correctly, gocui has implemented mouse support for Linux and for Windows. Maybe you can take a look at how they did it. Unfortunately I can't do a PR as this is beyond my skill level |
Windows supports mouse events which can be read (alongside all other input events) with ReadConsoleInput. However, this means that the Windows input event parsing logic (which would then be based on INPUT_RECORD structs) would have to be decoupled from the Unix logic. This is quite a bit of work but if the Windows implementation is rewritten to read INPUT_RECORDs, it can also likely use PeekConsoleInput which can replace the WaitForMultipleObjects mechanism introduced in #120 and thereby also solve #24 for the Windows Terminal where the mechanism from #120 does not work reliably. By the way, a INPUT_RECORD can also be a |
Bubble Tea now supports mouse events in Windows in As a technical note, we're only processing X10 mouse events, which are fairly basic across the board. It's possible to |
This is now available in |
I've tried this example on Windows Terminal which is new replacement for cmd
nor cmd nor power shell mode are working and most of the time
(x y)
bar is not renderingThe text was updated successfully, but these errors were encountered: