1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-15 04:38:06 +11:00
collapseos/blk/104

14 lines
363 B
Plaintext
Raw Permalink Normal View History

( Cursor position in buffer. EDPOS/64 is line number )
VARIABLE EDPOS
2020-05-02 11:52:38 +10:00
CREATE IBUF 64 ALLOT
CREATE FBUF 64 ALLOT
: _cpos BLK( + ;
: _lpos 64 * _cpos ;
: _pln ( lineno -- )
DUP _lpos DUP 64 + SWAP DO ( lno )
I EDPOS @ _cpos = IF '^' EMIT THEN
I C@ DUP 0x20 < IF DROP 0x20 THEN
EMIT
LOOP ( lno ) 1+ . ;
2020-05-02 11:52:38 +10:00
: _zbuf 64 0 FILL ; ( buf -- )