Mail Archives: djgpp/1998/05/11/00:02:04
At 10:47 5/9/1998 GMT, Cephaler wrote:
>Quick question: how do you empty the keypress buffer for bioskey?
You can do it by poking around with the buffer pointer in the BIOS's data
space, but I forget offhand how that works. The Interrupt List (Simtelnet:
inter* in info/) will tell how. However, there is a somewhat less efficient
solution that should still work:
while (bioskey(1)) (void)bioskey(0);
See the bioskey docs to know how this works.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -