-
Notifications
You must be signed in to change notification settings - Fork 177
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
Slow input in far2l ttyxi running under WSL #1591
Comments
Found two ways around this problem:
In both cases reaction is instant |
You meant "without far2l-ttyx ppa package installed", I guess :) |
Yes, of course it has to be removed |
May be it is related - after fixing arrow keys autorepeat under wslg, far2l --tty under wsl2 continues show delay, but arrow keys autorepeat now visualy jumps every 3-4 lines, not every 1 line |
Very interesting, as tyyxi module which cause this bug have not been changed. Btw, --nodetect option should still solve it. |
Yes, --nodetect solves for me the issue with jumps every 3-4 lines under far2l --tty |
Looks Xi just doesn't work under WSL. Everything initialized OK - from XOpenDisplay to XISelectEvents, BUT no key events are arrived at all, so code that checks keydowns waits each time until 100msec timeout. In overall it looks like wslg bug - they must either report failure to setup key events hooks either handle it correctly. But they report OK, but not delivering events then.. |
So --nodetect is perfectly fine, anyway it doesnt work right now |
However since win32 terminal works through this - #1581 so no need to use Xi anyway |
Maybe we can somehow determine exactly the X server used in Windows and do not enable xi for it? |
no, just need to skip using Xi for key events if found that terminal uses some extensions |
may test now |
Just tested with new commit (FAR2L, version 2.5.0-15b81623-beta Linux x86_64). |
The GUI version has a slightly larger delay (by 20-25%) than the tty version. |
I dont know, as in my Ubuntu inside of Win11 inside of VMWare inside of Win2008r2 running on i7 3770 they both similary quite sluggish.. |
BTW i see that mouse essentially is not working in far2l --tty as terminal sends some weird sequences instead of mouse events that far2l doesn't recognize. Is anybody else see same issue? |
It's a known Windows Terminal bug. They pack mouse escape sequences into win32-input-mode key events! Maybe we should make some kind of workaround for filtering such sequences or even converting them back to normal ones, but that's a bit too hard for me. |
Ugh, i spent whole hour trying to understand that encoding of mouse events, didnt expect that its their bug.. If so dont make sense to worry IMHO, let them fix it. |
Closing then as actual bug about slowness is fixed |
Also fiddled with this problem for a long time, until I realized what was the matter. Considering that I don’t even have Windows, and we caught it with colleagues from the far2l chat remotely. |
actually fixed in #2043 |
In console version of far2l running under WSL in ttyxi mode, reaction to keypresses is much slower than when in
Steps to reproduce:
Expected behavior: instant reaction to keypresses
Observed behavior: noticeable delay before reaction
The text was updated successfully, but these errors were encountered: