I wonder if it is a common Linux issue? I can't get it to register either, and I can't figure out what part of the system is eating it.
Thank you @Danny Toledo, 539 is the number I was looking for.
@ne555
May I ask what hardware/OS-combo you are using? If I understand you correctly, it looks like pressing Ctrl-Ins produced an escape sequence unrecognized by NCurses.
When I compile and run on my system (Mageia Linux) I get 542.
I believe that CTRL key combinations can be different depending on the values held in one of the header files (I don't remember which) and not all CTRL combinations are supported.
What is the value of MAX_KEY on your machine? And have you tried printing out the keyname() as well?
The keyname function may return the names of user-defined string capa-
bilities which are defined in the terminfo entry via the -x option of tic. This implementation automatically assigns at run-time keycodes to
user-defined strings which begin with "k". The keycodes start at
KEY_MAX, but are not guaranteed to be the same value for different runs
because user-defined codes are merged from all terminal descriptions
which have been loaded. The use_extended_names function controls
whether this data is loaded when the terminal description is read by
the library.
Emphasis mine
So, the keyname is important, but the actual key code may vary. LOL.