mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 22:38:06 +11:00
f6ded7712e
This is the first commit I do entirely in VE. It's a habit I'm planning on taking as it helps a lot to find usability issues.
17 lines
361 B
Plaintext
17 lines
361 B
Plaintext
: icpy ( n -- copy n chars from cursor to IBUF )
|
|
IBUF _zbuf EDPOS @ _cpos IBUF ( n a buf ) ROT MOVE ;
|
|
: X ( n -- )
|
|
DUP icpy EDPOS @ _cpos 2DUP + ( n a1 a1+n )
|
|
SWAP _rbufsz MOVE ( n )
|
|
( get to next line - n )
|
|
DUP EDPOS @ 0xffc0 AND 0x40 + -^ _cpos ( n a )
|
|
SWAP 0 FILL
|
|
EDPOS @ 64 / _pln ;
|
|
: E FBUF _blen X ;
|
|
: Y FBUF _blen icpy ;
|
|
|
|
|
|
|
|
|
|
|