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► ◄Notes► ◄Example► ◄Back►
──────────────────────────────────────────────────────────────────────────────
▀ The 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 inter-
nal 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.
-♦-