Harbour Reference Guide

 

__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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/06/26