Posted on 1997-11-24
HI, I'm doing a unix programming. However, i get problem when I try to read some input from keyboard. I use "getchar()" to do it, however, the programming is justing waiting there until somebody key in something. Is there a way to periodly check if there is any key-input in the input-buffer. If there is, then read the key. If not, continue to wait. I have do this in DOS. However, I don't know how to do it in UNIX.