Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!odin!elysium!archer From: archer@elysium.esd.sgi.com (Archer Sully) Newsgroups: comp.sys.sgi Subject: Re: How to do non-blocking keyboard input Keywords: non-blocking keyboard i/o help Message-ID: <8918@odin.corp.sgi.com> Date: 13 Jun 90 23:31:40 GMT References: <14670@thorin.cs.unc.edu> Sender: news@odin.corp.sgi.com Lines: 17 In article <14670@thorin.cs.unc.edu> taylorr@glycine.cs.unc.edu (Russell Taylor) writes: > I want to do non-blocking keyboard I/O in a program. Basically, the >routine will read a character from the keyboard if there is one and return >NULL if there is not. This is done in a tight loop with reads and writes >to other devices. How to I get a character from the keyboard if there is >one and a NULL if there is not? Check out 'Advanced UNIX(tm) Programming' by Marc Rochkind. It contains more answers to this (and all of the other questions that you will inevitably have) than I would care to post. -- Archer Sully | Ask not what you can do for you country, (archer@esd.sgi.com) | But what your country's been doing to you. | -- The Avengers