In trying to get input from the arrow keys via curses (ncurses) it won\'t catch as KEY_UP etc. I used the keypad function with a true argument but getch still returned an e
I found the same problem on Mac OS X. But it was resolved by adding the following:
keypad(stdscr, TRUE);