delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/28/08:28:38

Date: Sun, 28 Feb 1999 14:51:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Endlisnis <s257m AT unb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Flusing keyboard buffer
In-Reply-To: <36D84387.90D723E2@unb.ca>
Message-ID: <Pine.SUN.3.91.990228145128.5950l-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 27 Feb 1999, Endlisnis wrote:

>      You can use:
> rewind(stdin);
>     That should kill the pending keystrokes in one function call.

I think this only clears the characters buffered by the stdio
functions.  It does nothing about keystrokes pending in the BIOS
keyboard buffer.  So, unless the program reads the keyboard via
buffered stdio functions, `rewind' won't help.

- Raw text -


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