2020-06-05 00:39:59 +10:00
|
|
|
CREATE CMD 2 C, '$' C, 0 C,
|
2020-06-12 08:12:01 +10:00
|
|
|
CREATE PREVPOS 0 , CREATE PREVBLK 0 ,
|
2020-11-09 09:22:54 +11:00
|
|
|
: MIN ( n n - n ) 2DUP > IF SWAP THEN DROP ;
|
|
|
|
: MAX ( n n - n ) 2DUP < IF SWAP THEN DROP ;
|
2020-11-14 07:52:12 +11:00
|
|
|
: large? COLS 67 > ; : col- 67 COLS MIN -^ ;
|
2020-06-11 06:54:36 +10:00
|
|
|
: acc@ ACC @ 1 MAX ;
|
2020-10-29 11:29:28 +11:00
|
|
|
: num ACC @ SWAP _pdacc IF ACC ! ELSE DROP THEN ;
|
2020-06-05 00:39:59 +10:00
|
|
|
: nspcs ( n -- , spit n space ) 0 DO SPC LOOP ;
|
|
|
|
: aty 0 SWAP AT-XY ;
|
2020-06-23 21:08:21 +10:00
|
|
|
: clrscr LINES 0 DO I aty COLS nspcs LOOP ;
|
|
|
|
: gutter ( ln n ) OVER + SWAP DO 67 I AT-XY '|' EMIT LOOP ;
|
2020-06-06 00:38:05 +10:00
|
|
|
: status 0 aty ." BLK" SPC BLK> ? SPC ACC ?
|
2020-06-23 21:08:21 +10:00
|
|
|
SPC EDPOS @ 64 /MOD . ',' EMIT . SPC
|
2020-06-12 11:52:08 +10:00
|
|
|
BLKDTY @ IF '*' EMIT THEN 10 nspcs ;
|
2020-11-14 07:19:00 +11:00
|
|
|
: nums 17 1 DO 2 I + aty I . SPC SPC LOOP ;
|
2020-11-14 07:52:12 +11:00
|
|
|
: mode! ( c -- ) 4 col- 0 AT-XY ;
|