__KEYBOARD()

DO NOT CALL THIS FUNCTION DIRECTLY!

Syntax

KEYBOARD <cString>
CLEAR TYPEAHEAD

Arguments

<cString> is the optional string to stuff into the Harbour keyboard buffer after clearing it first. Note: The character ";" is converted to CHR(13) (this is an undocumented CA-Clipper feature).

Returns

There is no return value.

Description

Clears the Harbour keyboard typeahead buffer and then inserts an optional string into it.

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 ";" ? INKEY() ==> 13
KEYBOARD "HELLO"; CLEAR TYPEAHEAD; ? INKEY() ==> 0

Status

Ready

Compliance

__KEYBOARD() is compliant with CA-Clipper 5.3

Files

Library is rtl

See Also