[Windows] Mouse events in wezterm or alacritty not captured #3845
-
Why mouse events are not captured in wezterm or alacritty when using helix (Windows) ?. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In many cases the mouse is necessary in helix. For those who have this problem, it is probably because conhost.exe in windows is outdated. Therefore a quick solution is to clone the windows terminal repository, compile, and look in the bin folder, the OpenConsole.exe binary, then in the system32 folder, change the permissions of conhost.exe, to our user name with full control, rename it to conhost-old.exe, and is its replacement, copy OpenConsole.exe to the system32 folder and modify its name to conhost.exe. In my case this worked wonders, and solved my mouse problem. [Conpty] Add support for mouse input [Interesting Usage] Replace the Windows default conhost.exe to OpenConsole.exe |
Beta Was this translation helpful? Give feedback.
-
Awesome solution, thank you! For anyone who doesn't want to build from source, the
|
Beta Was this translation helpful? Give feedback.
In many cases the mouse is necessary in helix.
For those who have this problem, it is probably because conhost.exe in windows is outdated.
I have experienced the problem with crossterm which did not detect only the mouse in emulators like wezterm and alacritty.
In windows terminal the mouse works correctly, because it makes internal use of OpenConsole.exe, which is based on the same code as conhost.exe, but more updated.
Therefore a quick solution is to clone the windows terminal repository, compile, and look in the bin folder, the OpenConsole.exe binary, then in the system32 folder, change the permissions of conhost.exe, to our user name with full control, rename it to conhost-old.exe, a…