-
Notifications
You must be signed in to change notification settings - Fork 612
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
Add ncurses extended key support #1048
Conversation
First attempt at adding ncurses extended key support. |
I bind:
And for that to work nicely imho I also made some changes in another branch scroll_updates. |
I'll look into a commit tomorrow that prints a warning at exit if a key used in a binding is not supported by the terminal. |
Added exit print of warnings if binding an extended key that is not supported by terminfo. |
We could add <C-*> and <A-*> entries also. |
An easier way might be to just add -
at the end of init_display(). And then use the explicit mappings:
What do you think ? |
Added support for the abbreviated <C-*> and <A-*> bindings and made exit print to stderr |
Alt (3) and Control (5) are supported here. We could also try to add these (if supported and not already mapped) -
|
I've added support for the additional extended keys. |
squashed commits |
Would you expect that with this PR I could:
and have it work? |
Hi.
I dont know if you meant to type an upper-case 'V' or a lower-case 'v' ? My example above uses a lower-case 'v'. If you changed it to upper-case in the binding then it would be Alt+Shift+V pressed all at once. |
Thanks - it looks like it's mostly a case of the binding syntax being a bit idiosyncratic / undescribed. I worked out the bindings I was trying to get, see: #131 (comment) |
ok, sure.
are the same :-) |
Closing for now. |
Keys added, if terminfo reports feature -