🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #400

Flushing the typeahead buffer

#400
From: David J. Birnbaum
Date: Sat, 05 May 1990 01:03
21 lines
1584 bytes
In article <10151.263f01fa@vax1.cc.lehigh.edu> lubkt@vax1.cc.lehigh.edu writes:
>I do not know why a  program might want to  flush the keyboard buffer.

To which Tom Almy replies:
>Easy. You flush the input buffer to get rid of any unintentional typeahead.
>If you use the command interpreter 4DOS then the KEYSTACK function will
>do exactly what you want (it can handle buffer flushing).

I noticed that Keystack won't always help.  I use one shareware program 
that has a "reminder" screen; when you
enter the application, the "remember to pay" message is displayed until you
hit <F10>.  Keystack wouldn't feed this an <F10>, I think because the pro-
gram was getting the keystroke before it reached the keyboard buffer and
Keystack doesn't get in that early.  (I registered the program and the
reminder went away.)

-David
===================================================================
David J. Birnbaum              djb@wjh12.harvard.edu [Internet]
                               djb@harvunxw.bitnet [Bitnet]
                               ...!wjh12!djb [uucp]
Technical Details
Message-ID: <486@wjh12.harvard.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!husc6!wjh12!djb
References: <10151.263f01fa@vax1.cc.lehigh.edu> <7442@tekgvs.LABS.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!husc6!wjh12!djb
From: djb@wjh12.harvard.edu (David J. Birnbaum)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Flushing the typeahead buffer
Message-ID: <486@wjh12.harvard.edu>
Date: 5 May 90 01:03:45 GMT
References: <10151.263f01fa@vax1.cc.lehigh.edu> <7442@tekgvs.LABS.TEK.COM>
Reply-To: djb@wjh12.UUCP (David J. Birnbaum)
Organization: Harvard University, Cambridge MA
Lines: 21