C5_SET TYPEAHEAD

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 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()



5 responses to “C5_SET TYPEAHEAD

  1. Pingback: C5 UI General | Viva Clipper !

  2. Pingback: C5 Environment | Viva Clipper !

  3. Pingback: C5 User Interface | Viva Clipper !

  4. Pingback: C5 Commands | Viva Clipper !

  5. Pingback: C5 Commands | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.