xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET TYPEAHEAD

Dimensions the size of the keyboard buffer.

Syntax

SET TYPEAHEAD TO <nKeyboardSize>

Arguments

TO <nKeyboardSize>
This is a numeric value specifiying the maximum number of key strokes that can accumulate in the internal keyboard buffer. The value must lie within the range of 0 and 4096.

Description

The SET TYPEAHEAD command sets the number of keystrokes that the internal keyboard buffer can hold. This command does not affect the amount of key strokes that can be added to the keyboard buffer programmatically using the KEYBOARD command. Before the new buffer size is set, the buffer is cleared first.

When <nKeyboardSize> is set to zero, keyboard polling is suspended. Explicit requests for keyboard input by using the NextKey() function, for example, enables the buffer temporarily.

Info

See also:CLEAR TYPEAHEAD, Inkey(), KEYBOARD, SetCancel(), Set()
Category: SET commands
Source:rtl\set.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe