Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>set typeahead</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson