Among the stty -a
settings on my machine there are such as erase = ^?; kill = ^U;
. The man page reports that
erase CHAR
CHAR will erase the last character typed
kill CHAR
CHAR will erase the current line
But I found out the corresponding keyboard shortcuts effectively do the same thing, i.e. when I type boo
at the terminal and then press <ctrl>+U
or <ctrl>+?
the line would be erased completely in both cases.
So why the erase character does not erase only the last character?
^?
character upon pressing Ctrl+? (see with Ctrl+V followed by Ctrl+? for instance).^_
, not^?
was sended. But what does this character mean?