Thank you for your help. I just realized something interesting. This problem only occurs when I am using Terminator terminal emulator with the Custom Commands plugin. So maybe the problem is really there.
Here is the code for the plugin: https://github.com/gnome-terminator/terminator/blob/master/terminatorlib/plugins/custom_commands.py On Fri, Sep 25, 2026 at 9:39 AM Benno Schulenberg <[email protected]> wrote: > > Op 25-09-2026 om 11:34 schreef Benno Schulenberg: > > It seems to have something to do with ncurses. On an old Linux Mint, > > all the old versions of nano were linked against libncursesw.so.5, > > and those work fine. But when I recompile against libncursesw.so.6, > > the silly "[Unbound key]" messages appear for the numpad operators. > > I've bisected it down to ncurses patch 20190518: > > https://lists.gnu.org/archive/html/bug-ncurses/2019-05/msg00021.html > > Something changed in the keypad handling for terminals that identify > themselves as xterm. > > I will add a fix for this in nano in the coming days. > > Meanwhile you should be able to work around the issue by passing --raw > on the command line, or by putting 'set rawsequences' in your .nanorc. > > > Benno > >
