collapseos/blk/454

17 lines
378 B
Plaintext
Raw Normal View History

2020-04-25 21:54:07 -04:00
( 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
;
2020-05-02 10:37:37 -04:00
: KEY
85 RAM+ @ ( (key) override )
DUP IF EXECUTE ELSE DROP (key) THEN ;
2020-04-25 21:54:07 -04:00
( cont.: read one char into input buffer and returns whether we
should continue, that is, whether CR was not met. )