2020-06-07 07:25:02 -04:00
|
|
|
: pos! ( newpos -- ) EDPOS @ PREVPOS !
|
|
|
|
DUP 0< IF DROP 0 THEN 1023 MIN EDPOS ! ;
|
|
|
|
: setpos ( -- ) EDPOS @ 64 /MOD
|
2020-06-04 22:54:27 -04:00
|
|
|
3 + ( header ) SWAP 3 + ( gutter ) SWAP AT-XY ;
|
2020-06-06 21:46:46 -04:00
|
|
|
: cmv ( n -- , char movement ) acc@ * EDPOS @ + pos! ;
|
2020-06-08 21:23:23 -04:00
|
|
|
: buftype ( buf ln -- )
|
2020-06-11 20:31:18 -04:00
|
|
|
3 OVER AT-XY KEY DUP EMIT
|
|
|
|
DUP 0x20 < IF 2DROP DROP EXIT THEN
|
|
|
|
( buf ln c ) 63 nspcs SWAP 4 SWAP AT-XY ( buf c ) SWAP C!+
|
|
|
|
IN( _zbuf (rdln) IN( SWAP 63 MOVE ;
|
|
|
|
|
2020-06-11 18:12:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|