help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keypad bindings for num pad


From: cookieguru
Subject: Keypad bindings for num pad
Date: Sun, 24 Apr 2022 17:48:11 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Thunderbird/100.0

I'm on Ubuntu 20.04.4 and recently upgraded from nano 2.8 to 4.8. My /etc/nanorc file had "set rebindkeypad" and that was the only way I could use the num pad correctly in nano. Since that upgrade that directive no longer exists and I'm no longer able to type numbers on the num pad inside nano. Everything works fine in bash. I'm using en_US layout.

I tried upgrading to a newer version:

$ sudo snap install nano --classic
nano 5.7+pkg-4057 from Snapcrafters installed

The result was the same as with 4.8: keys 0-4 and 6-9 act as though the num pad were off and make the cursor move around. 5 generates "[ Unknown sequence ]". So I went back to the version available with my preferred package manager, specifically:

$ sudo apt install nano
(snip)
Setting up nano (4.8-1ubuntu1) ...

I can launch nano with -K and the num pad works as expected. But surely there is a better way to fix this than with an alias in my bashrc.

I noticed that in 9c1c6c18a[1] this was no longer declared a bug but a problem with ncurses. Apparently terminfo is supplying bad info, but what would this be and how would I go about correcting it? My understanding of both ncurses and terminfo can be summarized in one word: nothing. So what should I do to fix this issue?



1: https://git.savannah.gnu.org/cgit/nano.git/commit/?id=9c1c6c18ae2de1699fcdbf39c486973b86b5947f



Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]