1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-07 01:08:45 +10:00
collapseos/blk/454
2020-04-25 21:54:07 -04:00

17 lines
300 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
;
( cont.: read one char into input buffer and returns whether we
should continue, that is, whether CR was not met. )