2020-06-05 09:20:40 +10:00
|
|
|
: $w POS @ BLK( + acc@ 0 DO
|
|
|
|
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
|
|
|
|
1- BLK( - 1023 MIN POS ! ;
|
|
|
|
: $W POS @ BLK( + acc@ 0 DO
|
|
|
|
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
|
|
|
|
1+ BLK( - DUP 0< IF DROP 0 THEN POS ! ;
|
|
|
|
: modeM EXECUTE ;
|
2020-06-05 07:22:07 +10:00
|
|
|
: handle ( c -- f )
|
2020-06-05 08:52:59 +10:00
|
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
2020-06-05 09:20:40 +10:00
|
|
|
DUP CMD 2+ C! CMD FIND IF MODE @ EXECUTE ELSE DROP THEN
|
2020-06-05 08:52:59 +10:00
|
|
|
UPPER 'Q' = ;
|
2020-06-05 09:20:40 +10:00
|
|
|
: VE clrscr 0acc 0 POS ! ['] modeM MODE ! contents
|
2020-06-05 07:22:07 +10:00
|
|
|
BEGIN status setpos KEY handle UNTIL 18 aty ;
|
|
|
|
|