CLEAR TYPEAHEAD

From Recital Documentation Wiki
Revision as of 14:47, 18 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CLEAR TYPEAHEAD

Class

Keyboard Events


Purpose

Clear terminal typeahead buffer


Syntax

CLEAR TYPEAHEAD


See Also

LASTKEY(), READKEY(), SET COMPATIBLE, SET TBUFSIZE


Description

The CLEAR TYPEAHEAD command clears the typeahead buffer of all keystrokes entered. The CLEAR TYPEAHEAD commands also resets the LASTKEY() and READKEY() functions to zero, unless SET COMPATIBLE is set to FOXBASE | FOXPRO | FOXPLUS.


Example

clear typeahead
dialog box "Press ^W to continue, ^G to abandon."
if lastkey()=ctrl("g")
  return
endif


Products

Recital Mirage Server, Recital Terminal Developer