mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 12:38:46 +10:00
Previously, it would keep the old buffer displayed why typing over it. I had kept it thus because I didn't want to erase the buffer right away because the behavior is that when we type nothing, we keep the buffer as-is and repeat the action. Now, the behavior of I and F is much better. It keeps the buffer displayed until the first non-return keystroke and then erases it. Also, fixed PSP leak in _type and fixed PSP overuse in successful _F (they balanced out).
13 lines
375 B
Plaintext
13 lines
375 B
Plaintext
: $; 0acc ;
|
|
: $g ACC @ selblk 0acc ;
|
|
: $[ BLK> @ acc@ - selblk ;
|
|
: $] BLK> @ acc@ + selblk ;
|
|
: $I mode! 'I' EMIT IBUF 1 buftype _I contents mode! SPC ;
|
|
: $F mode! 'F' EMIT FBUF 2 buftype _F setpos mode! SPC ;
|
|
: $E E contents ;
|
|
: $X acc@ X contents ;
|
|
: $h -1 cmv ; : $l 1 cmv ; : $k -64 cmv ; : $j 64 cmv ;
|
|
: $H 0acc EDPOS @ 0x3c0 AND pos! ;
|
|
: $L 0acc EDPOS @ 0x3f OR pos! ;
|
|
|