home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
- From: kxb@matt.ksu.ksu.edu (Karl Buck)
- Newsgroups: comp.os.linux
- Subject: Polling keyboard in linux. What works best?
- Date: 29 Aug 1992 04:12:35 -0500
- Organization: Kansas State University
- Lines: 15
- Message-ID: <17nf23INNfr8@matt.ksu.ksu.edu>
- NNTP-Posting-Host: matt.ksu.ksu.edu
- Keywords: linux
-
- I want to check the keyboard for input (using gcc of course) without
- actually reading (ie: getc etc..). The unix FAQ suggests looking at
- the FIONREAD ioctl or using select() and the C FAQ states that this is
- a purely OS dependant question.
-
- What is best for Linux? Can this be non-blocking? A snippet of code
- for this would be great since I have not had to do this kind of thing
- before. Thanks.
-
-
- --
- Karl Buck O, Freddled Gruntbuggly
- USGMRL Thy Nicturations are to me
- 913.537.6106 (H) As Plurdled Gabbleblotchits
- 913.776.2745 (W) On a lurgid bee. -- Chief Prostetnic Vogon Jeltz
-