>>>>> "M" == Matthew PATTISON <mfp / students.cs.mu.OZ.AU> writes:

M> to catch characters as they're entered, then I have a case statement
M> where I execute a different piece of code based on what the character
M> is. My problem is, how do I detect the Esc. key or arrow keys or other
M> special keys?

 Well some interfaces (all ???) to curses has a function keypad() to return
function key but I've not seen an interface to this function in curses.c

 What you can do when you receive Esc (i.e. 0033) is to use IO::select
(with 0 as timeout) to see if some characters are pending, read these
characters and decode these characters as an arrow, or special keys.


Guy Decoux