Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!emcard!stiatl!todd From: todd@stiatl.UUCP (Todd Merriman) Newsgroups: comp.sys.ibm.pc Subject: Re: Clearing the keyboard buffer Keywords: MSDOS, IBM PC (compatible), KEYBOARD BUFFEER Message-ID: <3773@stiatl.UUCP> Date: 14 Mar 89 19:47:51 GMT References: <1636@aucs.UUCP> Reply-To: todd@stiatl.UUCP (Todd Merriman) Distribution: na Organization: Sales Technologies Inc., Atlanta, GA Lines: 58 In article <1636@aucs.UUCP> 840369k@aucs.UUCP (Elric Kinslayer) writes: >What's a quick and easy way to clear the keyboard? > ifdef DOCUMENTATION ; **************************************************************************** CONFLUSH.ASM 2/17/89 Todd Merriman .MODULE conflush .LIBRARY csub .TYPE function .DESCRIPTION Flush the type-ahead buffer .ARGUMENTS void conflush() .NARRATIVE Conflush drains the type-ahead buffer. All the characters in the buffer are thrown away. .APPLICATION system .SYSTEM msdos .AUTHOR Todd Merriman .RETURNS Nothing .LANGUAGE MSDOS small model & VMS, Assembly; all others, C .ENDOC END DOCUMENTATION ; **************************************************************************** endif INCLUDE \HEADER\C.MAC ; symbols and macros for Microsoft PSEG ; begin program section CFUN conflush PUSH BP MOV AX,0C00H ; flush buffer system call INT 21H POP BP RET CFEND conflush ENDPS ; end program section END ; **************************************************************************** ; End CONFLUSH.ASM ; **************************************************************************** ...!gatech!stiatl!todd Todd Merriman 404-377-8638 Atlanta, GA