Hey guys I am trying to take keyboard input in a c program. I want the down and up arrow keys to do something but every time I use them in the function getch() the char it returns is 27 which is the escape value.
well I found that when I would do getch() and hit an arrow key it would send three messages to ncurses, 27,[,A for up arrow for example. The problem now is when I do getch() again and I want to hit the escape key it waits for a command but when I hit an arrow key it doesn't wait because that pushes multiple things while escape just pushes 27.
Do you think there is a way to change it in system settings on Linux Mint to output a combined value like 66 or 65 or better yet if I could access everything in the ncurses input buffer without calling getch()?