E r g e b n i s / R e s u l t
Checks the console for keyboard input.
B e s c h r e i b u n g / D e s c r i p t i o n
The KBHIT function checks the console for a recent keystroke. If the function returns TRUE, a keystroke is waiting in the buffer. The program can then call GETCH to get the keystroke.
S y n t a x
Code:
boolhit = call ('KBHIT') P a r a m e t e r
R e t u r n s
KBHIT returns TRUE if a key has been pressed, otherwise, it returns FALSE
B e i s p i e l / E x a m p l e
Code:
attach 'CONIO'
WHILE CALL("KBHIT") = false
PUT AT 1,1 "HIT ME"
END WHILE
PUT AT 1,1 CALL ("GETCH")
detach 'CONIO'