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

Ctrl + _ registers as Ctrl + 7 #540

Closed
demmel opened this issue Feb 11, 2021 · 4 comments
Closed

Ctrl + _ registers as Ctrl + 7 #540

demmel opened this issue Feb 11, 2021 · 4 comments

Comments

@demmel
Copy link

demmel commented Feb 11, 2021

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!

@demmel
Copy link
Author

demmel commented Feb 11, 2021

Oops, it looks like this may be a dupe of #536.

@demmel demmel closed this as completed Feb 11, 2021
@demmel demmel reopened this Feb 11, 2021
@demmel
Copy link
Author

demmel commented Feb 11, 2021

Looks like #536 is about a specific issue on Windows though. I'm experiencing this on a unix terminal.

@TimonPost
Copy link
Member

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.

@TimonPost
Copy link
Member

Closing in favor of #685.

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

No branches or pull requests

2 participants