Comment 1 for bug 64299

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

I'm not clear why you think this is a problem. Traditionally, the default erase and kill characters on Unix were # and @ respectively. That's because they were available when other keys, like backspace, may not be. They also used to be echoed, e.g. "ed /etv#c/passwd" was what would appear on the screen.

It seems that getty(8) recognises those characters regardless of the tty's settings:

$ sudo sh -c 'stty -a </dev/tty1'
speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q;
...

This is documented in getty(8) in version 2.12r-17ubuntu of the util-linux package which contains getty.