-
Notifications
You must be signed in to change notification settings - Fork 0
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
In WSL2 - Enter does not work, need Ctrl-Enter #3
Comments
Hi, I just saw your comment. It could be due to a keyboard mapping problem. Or even the specific keyboard type (hardware) you use. But, it might be good old 'CRLF' (\r\n) of windows versus 'LF' ('\n') of Unix and Mac. You could adapt line 190 of "install dir of"/grblhud/lineinput.py to: Let me know if that worked, because then I can update the program (I don't use windows systems, so I cannot test this). Another possibility is to use another virtual machine to run Unix on. This might not have the issue. It might also be possible to configure the keyboard mapping of the virtual system (WSL2 or other). Regards, |
I tried it, but it did not work alas. This is an Ubuntu install on WSL2, so it might not be that windows thing with the CRLF. |
Ok, I am a bit surprised. Keyboard remap isn’t an option? If you add the following line to "install dir of"/grblhud/unblockedgetch.py" (line 73, just before the return statement), I am very curious what you get when you run grblhud and push <enter> Regards, P.S. you can also run a direct test on this module by entering: P.S.2 I did a test using python 3.12 on linux/arm (Manjaro) and it didn't work fine. See my comment below ... |
I'll make a fix for this problem. Point is that python 3.12.1 has a bug, it returns a 0x0D (CR) code instead a 0x0A (LF) code. You can add a class variable at line 33 and change line 191 of "install dir of"/grblhud/lineinput.py to:
This will do the trick. |
Created a python bug report for this issue: python/cpython#114328
This installs version 1.7.8 of grblhud and fixes the <enter> issue. |
Issue is fixed. Python bug will be fixed in a next release: python/cpython#114328 |
When using grblhud in interactive mode, hitting "Enter" on either numpad or regular does not send the command.
For example, typing "help" and "enter" does not execute a command, but instead issues a space.
Using "ctrl-enter" does work, both the regular and numpad enter.
Using WSL2, Ubuntu 22.04.3 LTS on Windows 10 Pro and Python 3.12.1
The text was updated successfully, but these errors were encountered: