www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/17/05:37:23

Date: Sun, 17 Jan 1999 12:27:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Simon <simon AT magicsoftware DOT freeserve DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Flusing keyboard buffer
In-Reply-To: <36A12520.630C@magicsoftware.freeserve.co.uk>
Message-ID: <Pine.SUN.3.91.990117122657.278d-100000@is>
MIME-Version: 1.0
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 ();

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019