-
Notifications
You must be signed in to change notification settings - Fork 275
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
Ctrl + _ registers as Ctrl + 7 #540
Comments
Oops, it looks like this may be a dupe of #536. |
Looks like #536 is about a specific issue on Windows though. I'm experiencing this on a unix terminal. |
Yes windows not related to this issue. Thanks for sharing that link, the ANSI code parsing code has to be altered to support this key combination. |
Closing in favor of #685. |
qezz
added a commit
to qezz/zee
that referenced
this issue
Jun 10, 2024
On Linux terminal, keycodes for `^/`, `^_`, and `^7` are the same. The parsed key depends on the library that handles the input. In case of Zee, it uses Zi framework for terminal based applications, which uses crossterm library to get key events. For more details, see crossterm issues: - crossterm-rs/crossterm#540 - crossterm-rs/crossterm#685 To check if it reproduces on your machine, you can try ``` showkey --ascii ``` - Crossterm - https://github.com/crossterm-rs/crossterm - Zi - https://github.com/mcobzarenco/zi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using raw mode Key Events in crossterm, it looks I'm incorrectly get Ctrl+7 when I hit Ctrl+_. It looks like Rustyline is able to correctly interpret the keycode for this sequence here https://github.com/kkawakam/rustyline/blob/master/src/keys.rs#L67. I'm not sure if there's more to it than that, but perhaps crossterm could do this as well. Otherwise, crossterm's EventStream has been awesome for handling async input in rawmode!
The text was updated successfully, but these errors were encountered: