-
Notifications
You must be signed in to change notification settings - Fork 165
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
Unable to capture some modified key strokes. #32
Comments
Unfortunately this behavior depends almost entirely on your terminal emulator of choice and the active termcap settings; to see what I mean you might consider trying different terminal emulators and different modifier key combinations. In the particular case of As examples of this kind of behavior, these pages might be illuminating: http://askubuntu.com/questions/441744/pressing-enter-produces-m-instead-of-a-newline Sadly, terminal application programmers typically need to select control-key combinations that are likely to work on a wide variety of terminal emulators to avoid this problem. |
Sad indeed. Thanks for the heads up. |
Thanks for looking into this. Regarding the key mapping - aren't key mappings in some database so applications know what to expect on which terminal? If not how is anything ever supposed to work on a terminal? Or is that why vi uses key sequences rather than modifiers most of the time? Because the modifiers break? |
@hramrach - yes, |
I have a small demo using the following event loop
and the following draw function
There are several cases like
Ctrl+,
,Ctrl+.
, andCtrl+/
that do not fire an event. Additionally there is at least one case of sending the wrong event. For example you would expectCtrl+m
to read...however it actually reads...
The text was updated successfully, but these errors were encountered: