10da104873
I'm planning on de-hardcoding columns in VE a bit to add support for screens narrower than 67 columns. There's a lot of hardcoding. Let's begin with not using core's LIST anymore. This allows us to spit 1-16 numbers only at startup.
15 lines
436 B
Plaintext
15 lines
436 B
Plaintext
: UPPER DUP 'a' 'z' =><= IF 32 - THEN ;
|
|
: handle ( c -- f )
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
|
0 ACC ! UPPER 'Q' = ;
|
|
: bufp ( buf -- )
|
|
DUP 64 + SWAP DO I C@ 0x20 MAX EMIT LOOP ;
|
|
: bufs
|
|
1 aty ." I: " IBUF bufp
|
|
2 aty ." F: " FBUF bufp 0 3 gutter ;
|
|
: VE
|
|
clrscr 0 ACC ! 0 PREVPOS ! nums contents
|
|
BEGIN status bufs setpos KEY handle UNTIL
|
|
19 aty (infl) ;
|