mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 17:50:54 +11:00
f023f9bcb4
With all this recent movements, we had a bit of a fragmentation issue.
17 lines
378 B
Plaintext
17 lines
378 B
Plaintext
( handle backspace: go back one char in IN>, if possible, then
|
|
emit SPC + BS )
|
|
: (inbs)
|
|
( already at IN( ? )
|
|
IN> @ IN( = IF EXIT THEN
|
|
IN> @ 1- IN> !
|
|
SPC BS
|
|
;
|
|
|
|
: KEY
|
|
85 RAM+ @ ( (key) override )
|
|
DUP IF EXECUTE ELSE DROP (key) THEN ;
|
|
|
|
|
|
( cont.: read one char into input buffer and returns whether we
|
|
should continue, that is, whether CR was not met. )
|