How do I detect arrow keys pressed using curses in C?
I found the same problem on Mac OS X. But it was resolved by adding the following:
keypad(stdscr, TRUE);
I was storing getch()
calls as char's when they were supposed to be int's. Works perfectly after the switch.