Key binding problem
Jeffery Small
jeff at cjsa.com
Sun Nov 6 19:31:44 UTC 2022
"Kevin J. McCarthy" <kevin at 8t8.us> writes:
>Have you tried running mutt with '-d 1', running <what-key>, and looking
>at ~/.muttdebug0 as you press those keys? That might list the full
>sequence of keys mutt is seeing when you press the non-working keys and
>give a clue.
I just tried that, but the debug file reports the same thing shown on the
command line when the key is pressed. Here are the results:
Keypad / key: <esc>Oo: Char = A, Octal = 1101, Decimal = 577
Keypad * key: <esc>Oj: Char = C, Octal = 1103, Decimal = 579
Keypad - key: <esc>Om: Char = D, Octal = 1104, Decimal = 580
Keypad + key: <esc>Ok: Char = ?, Octal = 1077, Decimal = 575
Keypad Enter: <esc>OM: Char = <KeypadEnter>, Octal = 527, Decimal = 343
Notice the large octal codes.
Now, for comparison, here is what I get for some other keys:
Keypad Num_Lock:
Char = <Esc>, Octal = 33, Decimal = 27
Char = O, Octal = 117, Decimal = 79
Char = I, Octal = 111, Decimal = 73
Keypad 7 key:
Char = <Esc>, Octal = 33, Decimal = 27
Char = [, Octal = 133, Decimal = 91
Char = 4, Octal = 64, Decimal = 52
Char = 4, Octal = 64, Decimal = 52
Char = ~, Octal = 176, Decimal = 126
Keypad . key:
Char = <Esc>, Octal = 33, Decimal = 27
Char = [, Octal = 133, Decimal = 91
Char = 3, Octal = 63, Decimal = 51
Char = 2, Octal = 62, Decimal = 50
Char = ~, Octal = 176, Decimal = 126
So what is up with this? Why is mutt seeing one thing output while
other programs such as vim and less see the escape code sequences?
Just to be sure that some other setting in mutt wasn't interfering,
I emptied the .muttrc file of all options save a single keypad key
binding, but got the same result for that key.
The Num_Lock key has always been disabled for my keyboard so it is not
playing a role in what's going on. However, I do notice that in a standard
xfce4-terminal with TERM=xterm-256color, when I press the following keys,
on the command line they output:
Key Output
--------- -------------
Num_Lock <tab>
Keypad / /
Keypad * *
Keypad - -
Keypad + +
All other keypad keys issue the expected escape sequences.
And finally, I have LC_ALL=C.UTF-8
I tried setting LC_ALL=C, but it made no difference in mutt's operation.
I'm still at a loss to understand exactly where the problem lies.
Regards,
--
Jeff
More information about the Mutt-users
mailing list