[comp.lang.c] Scanning a SPARC 1+ keyboard in C

eeidson@eng.auburn.edu (Eric Eidson) (04/08/91)

I am having some trouble with C I/O on a SPARCstation.  I am trying to 
read in a few characters from the keyboard and then send them back out
to standard I/O.  However, if the user doesn't respond within a certain
amount of time, I need the program to stop trying to read characters accept
a default and go on to the next step.  I have tried to use the curses 
functions getch() and nodelay() together, but since nodelay() requires
a call to initscr() which clears the screen, that approach is unsatisfactory.

Thanks in advance for any suggestions/pointers/code.... :-)

Hunter 

+-------------------------------+-----------------------------+
| Hunter Eidson                 | "I am the bringer...        |
| Auburn University             |  I am the knower...         |
| eeidson@eng.auburn.edu        |  I am the owner...          |
| (205)844-7691                 |  PSYCHOPOMPS...             |
| (205)844-2280                 |  THE SPARROWS ARE FLYING."  |
+-------------------------------+-----------------------------+
                 Stephen King -  The Dark Half