|
From: | Archimedes Gaviola |
Subject: | Re: Ncurses keypad is not properly working in FreeBSD |
Date: | Wed, 25 Jan 2023 12:37:13 +0800 |
I’m not sure if this is related to your question or not, but perhaps it will help.
I had some issues with certain keycodes, and I recall that there’s something funny about xterm.
It may be that xterm is the source of your problems. A quick and dirty thing to try would be to try a different terminal type.
I made a note in my code that I found this online that had some info, might be of help to you:
https://stackoverflow.com/questions/16975367/ncurses-reading-numpad-keys-and-escaping
That is solving a slightly different set of keys than I was worried about. I am using CDK which is built on top of ncurses, but I ended up extending the already-defined key set with my own customer keys to define ALT-A to ALT-Z and then ALT-a to ALT-z.
[Prev in Thread] | Current Thread | [Next in Thread] |