Add ncurses extended key support#1048
Add ncurses extended key support#1048mckellyln wants to merge 1 commit intojonas:masterfrom mckellyln:extended_keys
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 -