2020-06-04 10:39:59 -04:00
|
|
|
CREATE CMD 2 C, '$' C, 0 C,
|
2020-06-11 18:12:01 -04:00
|
|
|
CREATE PREVPOS 0 , CREATE PREVBLK 0 ,
|
2020-06-10 16:54:36 -04:00
|
|
|
: acc@ ACC @ 1 MAX ;
|
2020-06-04 10:39:59 -04:00
|
|
|
: num ACC @ SWAP _pdacc IF DROP ELSE ACC ! THEN ;
|
|
|
|
: nspcs ( n -- , spit n space ) 0 DO SPC LOOP ;
|
|
|
|
: aty 0 SWAP AT-XY ;
|
2020-06-05 10:38:05 -04:00
|
|
|
: clrscr LINES 0 DO i aty COLS nspcs LOOP ;
|
2020-06-11 12:01:22 -04:00
|
|
|
: gutter ( ln n ) OVER + SWAP DO 67 i AT-XY '|' EMIT LOOP ;
|
2020-06-05 10:38:05 -04:00
|
|
|
: status 0 aty ." BLK" SPC BLK> ? SPC ACC ?
|
|
|
|
SPC EDPOS @ 64 /MOD . ',' EMIT . 10 nspcs ;
|
2020-06-11 12:01:22 -04:00
|
|
|
: contents 3 aty BLK> @ LIST 3 16 gutter ;
|
2020-06-11 18:12:01 -04:00
|
|
|
: selblk BLK> @ PREVBLK ! BLK@ contents ;
|
2020-06-05 10:38:05 -04:00
|
|
|
: mode! ( c -- ) 63 0 AT-XY ;
|
2020-06-11 18:12:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|