2020-05-01 21:52:38 -04:00
|
|
|
: _type ( buf -- )
|
|
|
|
C< DUP 0xd = IF DROP EXIT THEN OVER DUP _zbuf ( c a )
|
|
|
|
BEGIN ( c a )
|
|
|
|
C!+ C< SWAP
|
|
|
|
OVER 0x0d = UNTIL ( c a ) C! ;
|
2020-05-01 13:17:40 -04:00
|
|
|
( user-facing lines are 1-based )
|
|
|
|
: T 1- DUP 64 * EDPOS ! _pln ;
|
2020-05-01 21:52:38 -04:00
|
|
|
: P IBUF _type IBUF EDPOS @ _cpos 64 MOVE BLK!! ;
|
2020-04-17 07:51:59 -04:00
|
|
|
: _mvln+ ( ln -- move ln 1 line further )
|
|
|
|
DUP 14 > IF DROP EXIT THEN
|
2020-04-30 20:42:07 -04:00
|
|
|
_lpos DUP 64 + 64 MOVE
|
2020-04-17 07:51:59 -04:00
|
|
|
;
|