Date: Sun, 28 Feb 1999 14:51:50 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Flusing keyboard buffer In-Reply-To: <36D84387.90D723E2@unb.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.