Path: utzoo!attcan!uunet!cs.utexas.edu!husc6!ogccse!blake!uw-beaver!fluke!ssc-vax!leea
From: leea@ssc-vax.UUCP (Lee Carver)
Newsgroups: comp.std.c
Subject: Re: ReadKey like Function in C
Message-ID: <2851@ssc-vax.UUCP>
Date: 15 Aug 89 16:02:34 GMT
References: <148@trigon.UUCP> <207600029@s.cs.uiuc.edu> <941@lakesys.UUCP> <21175@cup.portal.com> <3705@buengc.BU.EDU> <10712@smoke.BRL.MIL> <3727@buengc.BU.EDU> <10721@smoke.BRL.MIL>
Reply-To: leea@ssc-vax.UUCP (Lee Carver)
Organization: Boeing Aerospace, Kent  WA
Lines: 8

In this zoo of discussion on "getch", i'd like to add a shot in
support of "kbhit()".  In particular, I'd like kbhit to return
ture if input is waiting (i.e. getchar will NOT block) and
false otherwise.

This has the advantage of working with file streams, as well as
with "keyboards".  Also, the sematics cover such block-oriented
devices as 3270.