Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number pad issues when using nano in PuTTY

I'm using PuTTY on an old Windows laptop to communicate with Ubuntu.

When using the terminal, everything is fine and I can use the 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 didn’t have any effect. Is this an issue with PuTTY or with nano?

like image 678
Grey Mahagone Avatar asked Dec 11 '22 13:12

Grey Mahagone


1 Answers

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 it:

From an open PuTTY terminal:

  • Ctrl + right-click to bring up the context menu
  • Select "Change Settings..."
  • Select TerminalFeatures in the left-hand navigation tree
  • Check "Disable application keypad mode"

Reference: Description of bug on the Vim (FANDOM.com??) wiki

like image 82
zrobotics Avatar answered Dec 21 '22 17:12

zrobotics