Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!emory!ducvax.auburn.edu!eng.auburn.edu!eeidson From: eeidson@eng.auburn.edu (Eric Eidson) Newsgroups: comp.lang.c Subject: Scanning a SPARC 1+ keyboard in C Message-ID: Date: 8 Apr 91 16:35:50 GMT Sender: Eric H. Eidson (eeidson) Organization: Auburn University Engineering Lines: 20 Nntp-Posting-Host: lab10.eng.auburn.edu 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