[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-----------------+########################################################
#+-| CLEAR TYPEAHEAD |-------------------------------------------------+######
#| +-----------------+ The CLEAR TYPEAHEAD clears the keyboard buffer. |######
#+---------------------------------------------------------------------+######
##############################################################################
##############################################################################
#+--| Syntax |-------------+##################################################
#| CLEAR TYPEAHEAD |##################################################
#+-------------------------+##################################################
##############################################################################
##############################################################################
######+---| Description |---------------------------------------------+#######
######| The FORCE runtime library contains a keyboard buffer seperate |#######
######| from other hardware buffers. CLEAR TYPEAHEAD clears both the |#######
######| BIOS and FORCE buffers. |#######
######+---------------------------------------------------------------+#######
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Clear the keyboard buffer prior to WAITing |#########
#########| * for a string. |#########
#########| |#########
#########| CLEAR TYPEAHEAD |#########
#########| WAIT "Do you really want to? " TO yes_no |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Remove any keys "stuffed" into the keyboard buffer. |#########
#########| |#########
#########| k = lastkey() |#########
#########| KEYBOARD "RCA television" + chr(13) |#########
#########| IF k = &K_ESC |#########
#########| CLEAR TYPEAHEAD |#########
#########| ENDIF |#########
#########| {...} |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
ACCEPT
@...GET
INPUT
WAIT
inkey()
keyboard
key_int()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson