home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!think.com!ames!pacbell.com!UB.com!quack!dfox
- From: dfox@quack.sac.ca.us (David Fox)
- Subject: Unix equivalent to DOS kbhit() function?
- Message-ID: <fXawiU0@quack.sac.ca.us>
- Keywords: kbhit, getch, low-level keyboard control
- Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
- Date: 27 Dec 1992 22:09:08 UTC
- Lines: 11
-
- puts("hello");
-
- I am a relatively new Unix user, although I've used DOS C (MSC/Turbo C)
- for sometime. I've read the FAQ about how to get only one character
- from the console, which pertains to using getch() in curses, which
- seems to work all right, but that's not really what I'm after. What I
- want is to do something similar in Unix to what the DOS C kbhit() call
- does - which only returns something if the keyboard has been hit. The
- idea here is to run something in a loop until a keypress.
-
-
-