Don Hughes - 2001-12-19

I would like a 'single character' input routine that I can use in Regina under Linux so that I can do something like:

SAY "Continue? Y/N:"
answer = get_single_char(time_out_value)
IF( answer = "Y" ) THEN ...
ELSE IF ( answer = "N" ) THEN ...
ELSE IF ( answer = "" ) THEN ...
ELSE ...

Where the user would just hit a "Y" instead of "Y" followed by "Enter".  I can do this under OS/2, but have not been able to accomplish it under Linux.