Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!phoenix!phoenix.princeton.edu!ron From: ron@clarity.Princeton.EDU (Ronald Beekelaar) Newsgroups: comp.lang.c Subject: Keypressed exists? Message-ID: Date: 3 Feb 90 20:13:12 GMT Sender: news@phoenix.Princeton.EDU Distribution: comp Organization: Cognitive Science Lab. Princeton University. Lines: 12 Hi I have a very simple question, although I can't find the answer myself. How do you quietly test whether any key was pressed on the keyboard? I want to write a function that waits 10 seconds, if any key had been pressed, but doesn't wait at all, if none was pressed. Any help would be appreciated. -- ------ ron ------