-
Notifications
You must be signed in to change notification settings - Fork 26
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
For } and ] key presses, getch() always returns 0 #41
Comments
I have the same effect with Python 3.10 under Windows 10. Furthermore, pressing (') - apostrophe key - always returns int 530. |
I'm also experiencing this issue. The My best guess would be to start looking around here: Probably somewhere next week I could look into this, submit a PR to |
this seems to have regressed between windows-curses 2.3.0 and 2.3.1 -- an easy reproduction is by trying to type either a |
Thanks @asottile. This information helped me fix this in visidata. |
Fixes #1841. asottile noticed this was a regression in the last windows-curses release in this issue: zephyrproject-rtos/windows-curses#41
Resolved this problem for me - however, wheels for that version are only available for Python 3.10 and lower; that might be an issue for some folks. See saulpw/visidata#2119 (comment) for some troubleshooting about this, including encoding/locale settings. |
Windows-curses bug introduced after v2.3.0 not allowing to type apostrophe character. zephyrproject-rtos/windows-curses#41
Windows-curses bug introduced after v2.3.0 not allowing to type apostrophe character. zephyrproject-rtos/windows-curses#41
I am working with Python 3.7 and on macOS/Linux the python curses library handles these keys correctly but on Windows using this library pressing either ] or Shift-] (to get }) the
getch()
method always returns 0. I've tried get_wchr and get_str as well to the same effect.The text was updated successfully, but these errors were encountered: