3 ms·
You know when you are getting old when you read: > When you hit backspace, the kernel tty line discipline rubs out your previous character by printing (in the
by Jaruzel 10y ago
You know when you are getting old when you read:
> When you hit backspace, the kernel tty line discipline rubs out your previous character by printing (in the simple case) Ctrl-H, a space, and then another Ctrl-H.
And you think 'Yup, I knew that.' ...
(In my case, I just about recall re-implementing it when mucking about with serial consoles in my youth - On low baud connections, you could actually see it do it - backspace - space - backspace )
- kps 10y ago> printing (in the simple case) Ctrl-H, a space, and then another Ctrl-H. For the really simple case, run 'stty -echoe'. (And perhaps run something like 'cat', since most shells run in raw mode and do their own editing by default.)