[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SET TYPEAHEAD
 Set the size of the keyboard buffer
------------------------------------------------------------------------------
 Syntax

     SET TYPEAHEAD TO <nKeyboardSize>

 Arguments

     TO <nKeyboardSize> specifies the number of keystrokes the keyboard
     buffer can hold from a minimum of zero to a maximum of 4096.  The
     default size of the keyboard buffer is machine-dependent but 16 is the
     minimum size.

 Description

     SET TYPEAHEAD defines the size of the CA-Clipper keyboard buffer that
     caches keystrokes input directly by the user.  SET TYPEAHEAD, however,
     does not affect the number of characters that can be stuffed
     programmatically using the KEYBOARD command.  When executed, SET
     TYPEAHEAD clears the keyboard buffer and sets the size to
     <nKeyboardSize>.

     When TYPEAHEAD is SET TO zero, keyboard polling is suspended.  An
     explicit request for keyboard input, however, will temporarily enable
     the keyboard and read any pending keystrokes from the BIOS buffer.
     Calling NEXTKEY() constitutes such an explicit request.  NEXTKEY() reads
     any pending keystrokes from the BIOS buffer and returns the INKEY()
     value of the first keystroke read, or zero if no keystrokes are pending.

 Files   Library is CLIPPER.LIB.


See Also: ALTD() CLEAR TYPEAHEAD INKEY() KEYBOARD NEXTKEY()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson