2020-06-04 20:20:35 -04:00
|
|
|
: $w EDPOS @ BLK( + acc@ 0 DO
|
2020-06-04 19:20:40 -04:00
|
|
|
BEGIN C@+ WS? UNTIL BEGIN C@+ WS? NOT UNTIL LOOP
|
2020-06-04 20:20:35 -04:00
|
|
|
1- BLK( - 1023 MIN EDPOS ! ;
|
|
|
|
: $W EDPOS @ BLK( + acc@ 0 DO
|
2020-06-04 19:20:40 -04:00
|
|
|
BEGIN C@- WS? UNTIL BEGIN C@- WS? NOT UNTIL LOOP
|
2020-06-04 20:20:35 -04:00
|
|
|
1+ BLK( - DUP 0< IF DROP 0 THEN EDPOS ! ;
|
2020-06-04 20:07:02 -04:00
|
|
|
: handleM ( c -- f )
|
2020-06-04 18:52:59 -04:00
|
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
2020-06-04 20:07:02 -04:00
|
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
2020-06-04 18:52:59 -04:00
|
|
|
UPPER 'Q' = ;
|
2020-06-05 10:38:05 -04:00
|
|
|
: modeM ['] handleM MODE ! mode! SPC ;
|