Rick [Kitty5] wrote:
trying to fiddle with my gentoo box via ssh with putty, when I open
something to edit in nano the cursor keys don't work (they do at the
console), nano gives me the message "[ NumLock glitch detected.  Keypad will
malfunction with NumLock off ]"

I get this same error on my Gentoo box when I ssh in using putty or plain ol' ssh. Although, I get the error when I try to use the keypad '+' key. From <http://www.gnuenterprise.org/doc/nano/faq.html#4.6>:



I get the message "NumLock glitch detected. Keypad will malfunction with NumLock off." What gives?


Nano (actually almost all console editors do) has issues when cycling the NumLock key in certain X terminals (rxvt, aterm, wterm, etc...). When you switch NumLock on to off, you put the terminal into an "application mode" that changes what sequences are sent by the keypad. These sequences vary sufficiently from terminal to terminal that it is nearly impossible to work around them from within nano.

In a nutshell, if you want to be able to use the keypad with the arrow and page up/down functionality, you have to exit nano and reset your terminal (presumably with "reset" or "stty sane" or similar) and then run nano again with NumLock off. If you know an easier way to restore "normal mode", please mail [EMAIL PROTECTED]

--
Andrew Gaffney


-- [EMAIL PROTECTED] mailing list



Reply via email to