typed, without waiting for one?
Date: 5 Feb 2002 22:03:03 -0400In Turbo Pascal, use KeyPressed. Both Microsoft C and Turbo C offer thekbhit() function. All of these tell you whether a key has been pressed.If no key has been pressed, they return that information to yourprogram. If a keystroke is waiting, they tell your program that butleave the key in the input buffer.You can use the BIOS call, INT 16 AH=01 or 11, to check whether anactual keystroke is waiting; or the DOS call, INT 21 AH=0B, to check fora keystroke from stdin (subject to redirection). See Ralf Brown’sinterrupt list