It's been a long time since I've done curses programming. But you usually end up with a ugly switch statement to handle multi-character control sequences (arrow keys, page control, etc.). To see what ...