I'm using NCurses on Linux Mint (Cinnamon). I'm loving it.
I'm writing a program, but I'm having trouble with character key codes. I have switched to using integers to analyze them, but the results are the same. The only key that does work is backspace, and it still doesn't match up with what's in the
enter key should be 527, but no matter what (unsiged int, char, int) it always returns 10.
Backspace returns two hundered somthing, even though it's supposed to be 407.
I don't know what to do... The key codes are of an interger type, so I think this should work. However, in the header file, it also says this:
curses.h, line 1,389:
| * Pseudo-character tokens outside ASCII range. The curses wgetch() function|
* will return any given one of these only if the corresponding k- capability
* is defined in your terminal's terminfo entry.
I'm not sure what this means, but there is a function
defined, and that's the only thing I can think of that the quote could be refering to...
Can anyone help? Thank you for your time!
Also, if you want to look at the full source code, or even contribute, the repository is on github: https://github.com/BeenEncoded/linuxtimer