2020-11-09 17:15:41 -05:00
|
|
|
: XYPOS [ GRID_MEM LITN ] ;
|
2020-11-10 19:06:39 -05:00
|
|
|
: _cl* COLS LINES * ;
|
|
|
|
: AT-XY ( x y -- ) LINES * + _cl* MOD XYPOS ! ;
|
2020-11-10 19:19:44 -05:00
|
|
|
'? CLRLN NIP NOT [IF]
|
|
|
|
: CLRLN ( ln -- ) COLS * DUP COLS + SWAP DO 0 I CELL! LOOP ;
|
|
|
|
[THEN]
|
2020-11-09 17:15:41 -05:00
|
|
|
: _lf
|
2020-11-10 19:19:44 -05:00
|
|
|
XYPOS @ COLS / 1+ DUP CLRLN
|
|
|
|
COLS * _cl* MOD XYPOS ! ;
|
2020-11-09 17:15:41 -05:00
|
|
|
: _bs 0 ( blank ) XYPOS @ TUCK CELL! ( pos ) 1-
|
2020-11-10 19:06:39 -05:00
|
|
|
_cl* MOD XYPOS ! ;
|