🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #466

Re: ReadKey like Function in C

#466
From: Lee Carver
Date: Tue, 15 Aug 1989 16:02
8 lines
892 bytes
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.
Technical Details
Message-ID: <2851@ssc-vax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!husc6!ogccse!blake!uw-beaver!fluke!ssc-vax!leea
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>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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