2020-05-13 23:28:32 +10:00
|
|
|
( handle backspace: go back one char in IN>, if possible, then
|
2020-05-16 10:51:09 +10:00
|
|
|
emit BS + SPC + BS )
|
2020-06-12 12:29:05 +10:00
|
|
|
: _bs
|
2020-05-13 23:28:32 +10:00
|
|
|
( already at IN( ? )
|
|
|
|
IN> @ IN( = IF EXIT THEN
|
|
|
|
IN> @ 1- IN> !
|
2020-05-16 10:51:09 +10:00
|
|
|
BS SPC BS
|
2020-05-13 23:28:32 +10:00
|
|
|
;
|
2020-06-12 12:29:05 +10:00
|
|
|
( del is same as backspace )
|
|
|
|
: BS? DUP 0x7f = SWAP 0x8 = OR ;
|
2020-10-29 07:00:58 +11:00
|
|
|
SYSVARS 0x55 + :** KEY
|
2020-05-13 23:28:32 +10:00
|
|
|
( cont.: read one char into input buffer and returns whether we
|
|
|
|
should continue, that is, whether CR was not met. )
|