Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!ucscc.ucsc.edu!gorn!filbo
From: filbo@gorn.santa-cruz.ca.us (Bela Lubkin)
Newsgroups: comp.lang.pascal
Subject: Re: Clearing the keyboard buffer
Message-ID: <48.filbo@gorn.santa-cruz.ca.us>
Date: 3 Oct 89 02:26:22 GMT
References: <1169@krafla.rhi.hi.is>
Organization: R Pentomino
Lines: 11
X-Claimer: I >am< R Pentomino!

In article <1169@krafla.rhi.hi.is>, Karl Thoroddsen writes:
> While writing in TURBO 4.0 I've constantly encountered the problem
> of not being able to flush(clear) the keyboard buffer.

Var Crud: Char;
..
  While KeyPressed Do Crud:=ReadKey;  { Flush keyboard buffer }

Bela Lubkin     * *   filbo@gorn.santa-cruz.ca.us   CIS: 73047,1112
     @        * *     ...ucbvax!ucscc!gorn!filbo    ^^^  REALLY slow [months]
R Pentomino     *     Filbo @ Pyrzqxgl (408) 476-4633 & XBBS (408) 476-4945