Re: OT: RXVT keypad mapping in mc
On Mon, Oct 07, 2002 at 06:28:06 +1000, Russell wrote:
> I just installed rxvt on debian woody with fvwm2. It runs ok,
> except when i open midnight commander in an rxvt window, the
> keypad up/down/home/end movement keys don't work as they did
> in an xterm. When i press them, i just get characters printed:
Yes, rxvt's keypad handling is (IMHO) broken. When numlock is on,
the terminal should send the ASCII code of the digits, not the
corresponding keypad escape sequences.
> How to fix? Does terminfo get used by a curses app in an
> X window?
* Use XFree86 XTerm, not rxvt (nowadays, I find that xterm works
better than rxvt).
* Use xmodmap so that the keypad keys send digits (like the normal
digit keys) instead of KP_* codes.
* Change your software configuration so that it can cope with the
keypad escape sequences, but you need to do that for every software
that would run in rxvt, and this is not always possible.
Vincent Lefèvre <email@example.com> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA