[gforth] / gforth / vt100key.fs  

gforth: gforth/vt100key.fs

File: [gforth] / gforth / vt100key.fs (download)
Revision: 1.1, Thu Oct 27 16:32:25 1994 UTC (18 years, 7 months ago) by pazsan
Branch: MAIN
Added f.s
Speeded up history backward search
Fixed Bug in >float (1e is a float, "   <float>   " is, too)
Added vt100 cursor key support (vt100key.fs)

\ MS-DOS key interpreter                               17oct94py

Create translate $100 allot
translate $100 erase

: trans:  char translate + c! ;

: vt100-decode ( max span addr pos1 -- max span addr pos2 flag )
  key '[ = IF    key translate + c@ dup IF  decode  THEN
           ELSE  0  THEN ;

ctrl B trans: D
ctrl F trans: C
ctrl P trans: A
ctrl N trans: B

' vt100-decode  ctrlkeys $1B cells + !

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help