Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 0Ch
 ◄Summary► ◄Example►                         ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
     This function exists to allow a program to defeat MS-DOS's
     type-ahead feature. It discards any characters that are waiting in
     MS-DOS's internal type-ahead buffer, forcing the specified input
     function to wait for a character (usually a keyboard entry) that
     is truly entered after the program's request.
 
     The presence or absence of CTRL+C checking during execution of
     this function depends on the function number in register AL.
 
     A function number in AL other than 01h, 06h, 07h, 08h, or 0Ah
     simply flushes the input buffer and returns control to the calling
     program.
                                    -♦-