I'm writing a simple curses based text editor in Ruby (yeah, I know, yet
another text editor). I'm using the Curses module, and I have something
like
> c = Curses.getch.chr
to catch characters as they're entered, then I have a case statement
where I execute a different piece of code based on what the character
is. My problem is, how do I detect the Esc. key or arrow keys or other
special keys?
Matt