Skip to content
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

Work-around for win32-input-mode mouse sequences and SGR extended mouse report #2085

Merged
merged 6 commits into from
Mar 24, 2024

Conversation

Dazzar56
Copy link
Contributor

@Dazzar56 Dazzar56 commented Mar 19, 2024

fixes #2072
Here is complite fix for double encoded mouse sequences in win32-input-mode under WSL.

Due to bug in events encoding in windows ConPTY, mouse input not only encoded in X10 mouse sequences but characters in it also encoded again as win32-input-mode sequences. I patch up this by adding separate buffer for for accumulate unpacked chracters and then parsing it sepparatly.
In addition, I wrote some annotations to describe the process..

All tested under windows 11 WSL Ubuntu 22.04. Seems works just fine.

anton added 3 commits March 15, 2024 23:02
 * cleanup code
 * disable logs
 * correct parsing for win32-input mode
 * documented workflow of this fix as well as standard parsing procedure
 * complete refactoring of mouse input process
 * added support for mouse tracking
 * All three modifiers are now suported in mouse events: Shift, Alt, Ctrl
 * Unwrapping win32-input mode also supported for SGR
@Dazzar56 Dazzar56 changed the title fix elfmz/far2l#2072 win32-input-mode mouse sequences Work-around for win32-input-mode mouse sequences and SGR extended mouse report Mar 22, 2024
@elfmz elfmz merged commit 03caa22 into elfmz:master Mar 24, 2024
2 checks passed
@Dazzar56 Dazzar56 deleted the win32-input-mouse-fix branch March 24, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Work around Windows Terminal double escape sequences encoding on our side
3 participants