backspace character wiredness
- by mykhal
i wonder why backspace character in common linux terminals does not actually erase the characters, when printed (which normally works when typed)..
this works as expected:
$ echo -e "abc\b\b\bxyz"
xyz
(\b evaluates to backspace, can be inserted also as ctrl-v ctrl-h - rendered as ^H (0x08))
but when there are less characters after the…