How can I get Ruby curses to respond properly to arrow keys?
问题 TL;DR How can I get Ruby curses to respond properly to arrow keys? The KEY_UP constant doesn't seem to match my input. Environment and Problem Descriptions I am running Ruby 2.1.2 with the curses 1.0.1 gem. I'm trying to enable arrow-key navigation with curses. I've enabled Curses#getch to fetch a single key without waiting for the carriage return by calling Curses#cbreak, and this is working fine for the k character. However, I really want to enable arrow key navigation, and not just HJKL