Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!topaz!whoffman From: whoffman@topaz.UUCP Newsgroups: comp.lang.c Subject: boolean function to tell if a key has been pressed Message-ID: <10260@topaz.RUTGERS.EDU> Date: Thu, 19-Mar-87 18:01:49 EST Article-I.D.: topaz.10260 Posted: Thu Mar 19 18:01:49 1987 Date-Received: Sat, 21-Mar-87 06:49:05 EST Organization: Rutgers Univ., New Brunswick, N.J. Lines: 21 Hello, I am seeking a way to tell whether or not a key has been pressed on a keyboard. i.e something like this: while (1) { ...statements.... if "a key has been pressed" {...statements} ...statements...} the problem i keep running into is that getc,getchar etc..all WAIT for a key to be pressed. I would just like to see IF one has been pressed. Any help on this would be greatly appreciated. Thanks in advance... bill. William R. Hoffman Arpa: whoffman@topaz.rutgers.edu or whoffman@red.rutgers.edu Uucp: ...{harvard | seismo | pyramid}!rutgers!topaz!whoffman