1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 02:28:06 +11:00
collapseos/blk/129

10 lines
289 B
Plaintext
Raw Normal View History

: $R ( replace mode )
mode! 'R' EMIT
BEGIN setpos C< DUP 0xd = NOT IF
EDPOS @ _cpos C! 1 EDPOS +! BLK!! 0
THEN UNTIL mode! SPC contents ;
: handle ( c -- f )
DUP '0' '9' =><= IF num 0 EXIT THEN
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
UPPER 'Q' = ;