-
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
Cannot bind <Ctrl-Up>/<Ctrl-Down> #1046
Comments
Attempts to work around this with
were not successful either. |
Hi, |
Have you tried:
@mgedmin, |
(Wow, I didn't know about |
With Putty, |
@koutcher hi. Thanks. But can we alter the check for KEY_MAX (or KEY_MAX) for this ? And add these new values. |
Perhaps allow an ncurses key value directly in .tigrc bindings ? Or extra foo for special values->names ... |
We can check 511+ to find the values for names kDN5 and kUP5 and use those as new CtrlDown and CtrlUp keys. |
Maybe there is some hope with neomutt/neomutt@aa64ad7... |
Yea, cool, that would be the way to get them all. |
Some have been waiting for this since 2015 and it would make the impossible possible, so that doesn't sound like a bad idea. |
ok, I'll work on something this weekend that adds an extended_key_mappings[] and searches that also. |
ok, first attempt is here #1048 |
An easier way might be to just add -
at the end of init_display(). And then use the explicit mappings:
|
As a user I'd much prefer being able to specify |
@mgedmin sure, and I agree. It's just that sometimes a simple code change is accepted when a larger one is not and I just thought I should mention it. |
I've also added PR #1049 for the much more simple way. |
This makes it possible to use esc-codes in mappings for Shift/Ctrl/Alt Up/Down/Left/Right/Home/End/Insert/Delete/PgUp/PgDn. [tk: minor tweaks and NCURSES_EXT_FUNCS was only made visible in ncurses v5_6_20071117, so use NCURSES_VERSION instead for compatibility.] References #1046
I'm trying to use these mappings in my .tigrc
The
tigrc
manual page led me to expect this to be valid syntax:also there are no errors printed by
tig
on startup.Still, when I press ctrl-up, I get a "Unknown key, press h for help", and when I press ctrl-down, nothing happens at all. Also, these bindings don't show up in the help page shown by
h
.I've tig version 2.4.1 from Ubuntu 20.10 (ncursesw version 6.2.20200212, readline version 8.0).
The text was updated successfully, but these errors were encountered: