Path: utzoo!utgpu!watmath!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.sys.ibm.pc Subject: Re: Clearing the keyboard buffer Keywords: MSDOS, IBM PC (compatible), KEYBOARD BUFFEER Message-ID: <18708@iuvax.cs.indiana.edu> Date: 20 Mar 89 17:33:07 GMT Reply-To: bobmon@iuvax.cs.indiana.edu (RAMontante) Distribution: na Organization: malkaryotic Lines: 7 If you're using Turbo-Pascal, you should have a "kbhit()" function to tell you whether any keys are queued, and a "kbread()" or something similar to get those keys. Turbo-C uses these, and I vaguely remember something like this from TPascal v3. You need the kbhit() test because kbread() (or whatever it's called) will wait until it does get a key.