Skip to content
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

Learn keypad keys vs. numlock #3168

Open
mc-butler opened this issue Feb 11, 2014 · 3 comments
Open

Learn keypad keys vs. numlock #3168

mc-butler opened this issue Feb 11, 2014 · 3 comments
Labels
area: tty Interaction with the terminal, screen libraries prio: low Minor problem or easily worked around

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3168
Reporter egmont (@egmontkob)

If numlock is off, the keypad /*-+ symbols generate certain escape sequences. In this case "Learn keys" works as expected.

If numlock is on, these keypad symbols generate the regular ASCII characters. "/" is recognized and accepted (although it's of not much use, mc knows it already and it probably won't work once you switch off numlock since mc didn't learn the escape sequence). The other three are not recognized automatically, and can't even be forced (e.g. you navigate to "* on keypad", press Enter and then press "*", you get an error:

Cannot accept this key
You have entered "*"

which doesn't make any sense; the same happens for "-" and "+").

My suggestion: When any of the raw ASCII /*-+ characters are read, the user should be asked to switch off numlock and then press that key again.

@mc-butler
Copy link
Author

Changed by egmont (@egmontkob) on Feb 11, 2014 at 20:19 UTC (comment 1)

  • Priority changed from major to minor

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 12, 2019 at 18:01 UTC (comment 2)

  • Component changed from mc-core to mc-tty

@mc-butler
Copy link
Author

Changed by ossi (@ossilator) on Aug 15, 2023 at 8:33 UTC (comment 3)

i can confirm this with both xterm and konsole, both ncurses and slang.
weirdly enough, it does _not_ affect '/', only '*-+'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: low Minor problem or easily worked around
Development

No branches or pull requests

1 participant