mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 04:38:06 +11:00
4af93d53e3
Also, add insert and find buffers to the header, making it 3 lines high. Also, fix the "I" overshadowing word which wasn't operating on the proper RSP level. Also, fix I which didn't mark the block as dirty.
14 lines
446 B
Plaintext
14 lines
446 B
Plaintext
CREATE CMD 2 C, '$' C, 0 C,
|
|
VARIABLE MODE VARIABLE MODEC
|
|
: 0acc 0 ACC ! ;
|
|
: acc@ ACC @ 1 MAX 0acc ;
|
|
: num ACC @ SWAP _pdacc IF DROP ELSE ACC ! THEN ;
|
|
: nspcs ( n -- , spit n space ) 0 DO SPC LOOP ;
|
|
: aty 0 SWAP AT-XY ;
|
|
: clrln DUP aty COLS nspcs aty ;
|
|
: clrscr LINES 0 DO i clrln LOOP ;
|
|
: status 0 clrln ." BLK" SPC BLK> ? SPC ACC ?
|
|
SPC EDPOS @ 64 /MOD . ',' EMIT . SPC MODEC C@ EMIT ;
|
|
: contents 3 aty BLK> @ LIST ;
|
|
: selblk BLK@ contents ;
|