On Sun, Nov 06, 2022 at 07:31:44PM -0000, Jeffery Small wrote:
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

For these large octal values, you can try the syntax <octal number> in your muttrc.

e.g.
bind generic  <1101>        first-entry
bind generic  <1103>        last-entry
bind generic  <1104>        select-entry
bind generic  <1077>        next-entry
bind generic  <keypadenter> next-entry

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?

Mutt uses ncurses for terminal input/output interaction. Those are the values the ncurses getch() function is returning to mutt. Unfortunately, I couldn't tell you why this differs, but I'm fairly sure vim and less don't use ncurses.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to