18.6.1.2488.30
XKEY
x-key
XCHAR
( --
xchar
)
Reads an
xchar
from the terminal. This will discard all input events up to the completion of the
xchar
.
See:
6.1.1750 KEY
.
Implementation:
:
XKEY
(
-- xchar )
KEY
DUP
$80
U<
IF
EXIT
THEN
\
special case ASCII
$7F
AND
$40
>R
BEGIN
DUP
R@
AND
WHILE
R@
XOR
6
LSHIFT
R>
5
LSHIFT
>R
>R
KEY
$3F
AND
R>
OR
REPEAT
R>
DROP
;
Forth 2012
Forth 2012
Extended-Character word set
Foreword
Proposals Process
200
x
Membership
Introduction
Terms, notation, and references
Usage requirements
Documentation requirements
Compliance and labeling
Glossary
Block word set
Double-Number word set
Exception word set
Facility word set
File-Access word set
Floating-Point word set
Locals word set
Memory-Allocation word set
Programming-Tools word set
Search-Order word set
String word set
Extended-Character word set
Rationale
Bibliography
Compatibility analysis
Portability guide
Reference Implementations
Test Suite
Alphabetic list of words
Glossary
Introduction
Additional terms and notation
Additional usage requirements
Additional documentation requirements
Compliance and labeling
Glossary
XKEY
X-SIZE
XC!+
XC!+?
XC,
XC-SIZE
XC@+
XCHAR+
XEMIT
XKEY
XKEY?
+X/STRING
-TRAILING-GARBAGE
CHAR
EKEY>XCHAR
PARSE
X-WIDTH
XC-WIDTH
XCHAR-
XHOLD
X\STRING-
[CHAR]