mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 04:28:05 +11:00
VE: don't emit chars higher than 0x7f
Uninitialized blocks often contains garbage, and emitting it on the TRS-80 4P results in serious visual glitches.
This commit is contained in:
parent
20c38e5cd0
commit
2fa88176c0
5
blk.fs
5
blk.fs
@ -804,7 +804,8 @@ CREATE PREVPOS 0 , CREATE PREVBLK 0 , CREATE xoff 0 ,
|
||||
BLKDTY @ IF '*' EMIT THEN 4 nspcs ;
|
||||
: nums 17 1 DO 2 I + aty I . SPC SPC LOOP ;
|
||||
( ----- 127 )
|
||||
: mode! ( c -- ) 4 col- CELL! ; : @emit C@ 0x20 MAX EMIT ;
|
||||
: mode! ( c -- ) 4 col- CELL! ;
|
||||
: @emit C@ 0x20 MAX 0x7f MIN EMIT ;
|
||||
: contents
|
||||
16 0 DO
|
||||
large? IF 3 ELSE 0 THEN I 3 + AT-XY
|
||||
@ -819,8 +820,8 @@ CREATE PREVPOS 0 , CREATE PREVBLK 0 , CREATE xoff 0 ,
|
||||
width >= IF 64 COLS - xoff ! contents THEN THEN ;
|
||||
: setpos ( -- ) pos@ 3 + ( header ) SWAP ( y x ) xoff @ -
|
||||
large? IF 3 + ( gutter ) THEN SWAP AT-XY ;
|
||||
: cmv ( n -- , char movement ) acc@ * EDPOS @ + pos! ;
|
||||
( ----- 128 )
|
||||
: cmv ( n -- , char movement ) acc@ * EDPOS @ + pos! ;
|
||||
: buftype ( buf ln -- )
|
||||
3 OVER AT-XY KEY DUP EMIT
|
||||
DUP 0x20 < IF 2DROP DROP EXIT THEN
|
||||
|
1
tools/.gitignore
vendored
1
tools/.gitignore
vendored
@ -7,4 +7,5 @@
|
||||
/blkpack
|
||||
/blkunpack
|
||||
/blkup
|
||||
/blkdown
|
||||
/smsrom
|
||||
|
Loading…
Reference in New Issue
Block a user