mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 01:30:55 +11:00
e317e9cc78
This gives us backspace handling. Also, remove all usages of C< which allows us to remove the C<* override.
17 lines
387 B
Plaintext
17 lines
387 B
Plaintext
: handle ( c -- f )
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
|
0 ACC ! UPPER 'Q' = ;
|
|
: bufp ( buf -- )
|
|
DUP 64 + SWAP DO i C@ 0x20 MAX EMIT LOOP ;
|
|
: bufs
|
|
1 aty ." I: " IBUF bufp
|
|
2 aty ." F: " FBUF bufp 0 3 gutter ;
|
|
: VE
|
|
clrscr 0 ACC ! 0 PREVPOS ! contents
|
|
BEGIN status bufs setpos KEY handle UNTIL
|
|
19 aty ;
|
|
|
|
|
|
|