Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!faline!thumper!tr From: tr@thumper.UUCP Newsgroups: comp.sys.ibm.pc Subject: How do you flush the PC's keyboard? Message-ID: <747@thumper.UUCP> Date: Thu, 28-May-87 20:28:17 EDT Article-I.D.: thumper.747 Posted: Thu May 28 20:28:17 1987 Date-Received: Tue, 2-Jun-87 04:14:16 EDT Organization: BellCoRe (Bell Communications Research) Lines: 23 [If this line had not been eaten, According to _Advanced MS-DOS_ by Ray Duncan, DOS function C (hex) resets the input buffer and then gets a character for input using one of five DOS functions. They are 1, 6, 7, 8, and A (hex). I want to flush the keyboard without getting input. The reason for this is that the next thing my program does is call up a canned function that uses keyboard input. I am using Lattice C. Is there a standard way of doing this with C or Assembler? I would not expect fflush(stdin); to work because fflush is said to be for output buffers. Thank you for your attention. You people are great. -- Tom Reingold INTERNET: tr@bellcore.bellcore.com UUCP: {seismo,ihnp4,ucbvax,decvax}!bellcore!tr {ulysses,allegra,clyde,princeton}!bellcore!tr