2/19 Is there a way to determine if Backspace is set to ^? or ^H . I'm
trying to config a login script that will do an 'stty erase'
to the correct control sequence.
\_ stty -a | grep ' erase' | sed -e 's/^.*erase = //' \
-e 's/\;.*$//'
Seems to work on BSD and Linux
\_ On my HP-UX xterm, if I had previously did 'stty erase ^H' then
the above will return ^H, but if I didm't, I get DEL. So what
do I do with DEL? More precisely, I want to be able to log in
from different xterms (linux, hp-ux, etc) and have my backspace
mapped correctly.
\_ AFAIK, DEL == ^?. BTW, why are you doing all this, termcap
terminfo, etc. should just take care of everything provided
$TERM is set.
\_ I guess it's not in my case. TERM is being set, but unless
I do a 'stty erase ^H', my backspace won't work (it'll
just output ^H). And if I log in from a linux box, it's ^? |