# KEYBOARD

Stuffs the keyboard with a string.

Syntax

  KEYBOARD <cString>

Arguments

  <cString> String to be processed, one character at a time, by the Harbour keyboard processor

Description

  This command stuffs the input buffer with <cString>. The number of characters that can be stuffed into the keyboard buffer is controlled by the SET TYPEAHEAD command and may range from 0 to 32,622, with each character appearing in the ASCII range of 0 to 255. None of the extended keys may be stuffed into the keyboard buffer. Issuing a KEYBOARD " " will clear the keyboard buffer.

Examples

          // Stuff an Enter key into the keyboard buffer
          KEYBOARD CHR(13)
          // Clear the keyboard buffer
          CLEAR TYPEAHEAD
    Tests
          KEYBOARD CHR(13); ? INKEY() ==> 13
          KEYBOARD "HELLO"; CLEAR TYPEAHEAD; ? INKEY() ==> 0

Status

  Ready

Compliance

  __KEYBOARD() is compliant with CA-Clipper 5.3

See Also

- CLEAR TYPEAHEAD
- __KEYBOARD()