Date: Sun, 17 Jan 1999 12:27:16 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Simon cc: djgpp AT delorie DOT com Subject: Re: Flusing keyboard buffer In-Reply-To: <36A12520.630C@magicsoftware.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sat, 16 Jan 1999, Simon wrote: > Can anyone tell me a function that will remove all unfetched > key strokes from the keyboard buffer ! Here's one possible way: while (kbhit ()) getkey ();