mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:18: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
520 B
Plaintext
17 lines
520 B
Plaintext
CREATE CMD 2 C, '$' C, 0 C,
|
|
CREATE PREVPOS 0 , CREATE PREVBLK 0 ,
|
|
: acc@ ACC @ 1 MAX ;
|
|
: num ACC @ SWAP _pdacc IF DROP ELSE ACC ! THEN ;
|
|
: nspcs ( n -- , spit n space ) 0 DO SPC LOOP ;
|
|
: aty 0 SWAP AT-XY ;
|
|
: clrscr LINES 0 DO i aty COLS nspcs LOOP ;
|
|
: gutter ( ln n ) OVER + SWAP DO 67 i AT-XY '|' EMIT LOOP ;
|
|
: status 0 aty ." BLK" SPC BLK> ? SPC ACC ?
|
|
SPC EDPOS @ 64 /MOD . ',' EMIT . 10 nspcs ;
|
|
: contents 3 aty BLK> @ LIST 3 16 gutter ;
|
|
: selblk BLK> @ PREVBLK ! BLK@ contents ;
|
|
: mode! ( c -- ) 63 0 AT-XY ;
|
|
|
|
|
|
|