Scanning a SPARC 1+ keyboard in C

Eric Eidson eeidson at eng.auburn.edu
Tue Apr 9 02:35:50 AEST 1991


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 at eng.auburn.edu        |  I am the owner...          |
| (205)844-7691                 |  PSYCHOPOMPS...             |
| (205)844-2280                 |  THE SPARROWS ARE FLYING."  |
+-------------------------------+-----------------------------+
                 Stephen King -  The Dark Half



More information about the Comp.lang.c mailing list