I'm using PuTTY on an old Windows laptop to communicate with Ubuntu.
When using the terminal everything is fine and I can use Numpad normally. However, when I open anything in nano all these keys have functions instead of numbers.
I did a search about this and found a few solutions to change PuTTY settings but they had no effect. Is this an issue with PuTTY or with nano?
For anyone else with this problem- this is PuTTY specific, and is caused by the application keypad mode sending escape sequences to nano.
To Solve: From an open PuTTY terminal:
nano
uses the curses keypad
function, turning it on (so that curses handles cursor-keys). The terminal description turns on application mode for both the cursor-keys and the numeric keypad, which with PuTTY makes it send the non-numeric stuff.
You could modify the terminal description to remove the numeric-keypad part of the smkx
capability:
infocmp -1 >foo
vi foo
... look for smkx=\E[?1h\E=,
... change that to smkx=\E[?1h,
tic foo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.