In my .muttrc file I have the following:
#------------------------------------------------------------------------------
# attach key bindings >#------------------------------------------------------------------------------
bind attach g first-entry # g Key
bind attach q exit # q Key
bind attach v exit # v Key
bind attach <esc>[42~ exit # Keypad 5 Key
bind attach <esc>[45~ exit # Keypad 8 Key
bind attach <esc>[46~ exit # Keypad 9 Key
bind attach <esc>Om exit # Keypad - Key
bind attach <esc>Ok exit # Keypad + Key
bind attach <esc>OM exit # Keypad Enter Key
When reading an email and entering the attachments menu,
I can exit with KP5, KP8, and KP9, but the keypad -, + and Enter
keys do not work. I verify in the editor that all keys are issuing the >specified escape codes. When in the attachment menu, "?" shows
that all binding are proper assigned.
Any clue as to why the first three bindings work but last three don't?
I'm now on Xubuntu 22.04.1 with mutt 2.1.4, the latest package in the >repository.
Any clue as to why the first three bindings work but last three don't?
I'm now on Xubuntu 22.04.1 with mutt 2.1.4, the latest package in the repository.
No, it seems okay to me and works fine here. I guess one possibility is
you have Num Lock on, which changes what input the key generates?
If that's the case, I guess just adding a binding for + and - might
work.
On Thursday, October 13, 2022 at 2:49:10 PM UTC-7, Tavis Ormandy wrote:
No, it seems okay to me and works fine here. I guess one possibility is
you have Num Lock on, which changes what input the key generates?
That was a good guess Tavis. Although the Num Locks key is not on, I
already tried exactly what you suggested and it made no difference. :-(
When I press these keys, mutt says "Key is not bound. Press '?' for help." The same thing is reported for other areas of mutt. It's as if these keys are not being recognized by mutt, even though they work elsewhere.
On Thursday, October 13, 2022 at 2:49:10 PM UTC-7, Tavis Ormandy wrote:
No, it seems okay to me and works fine here. I guess one possibility is
you have Num Lock on, which changes what input the key generates?
That was a good guess Tavis. Although the Num Locks key is not on, I already tried exactly what you suggested and it made no difference. :-( When I press these keys, mutt says "Key is not bound. Press '?' for help." The same thing is reported for other areas of mutt. It's as if these keys are not being recognized by mutt, even though they work elsewhere.
Hmm, I would try binding something to what-key, then pressing +. I think
it will only recognize the last character, but you can check if that
matches at least!
Tavis.
Since I was working on mutt macros, I thought I would take one more pass
at the numeric keypad key binding problem.
I used the <what-key> function to investigate various keys. It returned
the same value for F1, and the keypad keys 0-9 and the period:
Char = ~, Octal = 176, Decimal = 126
What's up with that?
On 2022-10-29, cjsmall wrote:
Since I was working on mutt macros, I thought I would take one more pass
at the numeric keypad key binding problem.
I used the <what-key> function to investigate various keys. It returned
the same value for F1, and the keypad keys 0-9 and the period:
Char = ~, Octal = 176, Decimal = 126
What's up with that?It only knows about the last character of the sequence if it doesn't
have a termcap name... but you're not pressing something unusual, so it should have a termcap name, it should say Char = <F1>.
But... what terminal does F1 send something that ends with a ~? Is this rxvt?
$ infocmp -1 rxvt | grep kf1=
kf1=\E[11~,
Is your $TERM definitely correct?
Is your $TERM definitely correct?
I'm on Xubuntu using the xfce4-terminal. The proper setting for TERM is xterm-256color -- which I have.
Regarding function keys, F2-F12 report, by what-key, as <F2> through <F12> but F1 differs from the terminfo entry. The key emits "<esc>[29~" while
the terminfo entry is "kf1=\EOP".
Does running TERM=xterm-color mutt change anything?
infocmp xterm-color# Reconstructed via infocmp from file: /lib/terminfo/x/xterm-color xterm-color|nxterm|generic color xterm,
infocmp xterm-256color# Reconstructed via infocmp from file: /lib/terminfo/x/xterm-256color xterm-256color|xterm with 256 colors,
infocmp -d xterm xterm-256colorcomparing xterm to xterm-256color.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (3 / 13) |
Uptime: | 06:24:53 |
Calls: | 10,388 |
Calls today: | 3 |
Files: | 14,061 |
Messages: | 6,416,810 |
Posted today: | 1 |