Originally Posted by jlightner
Hit Ctrl-v (hold down ctrl key then hit v). Then hit the backspace key. What you see should be the code the backspace key is sending. (Typically it is ^? or ^H).
Then type "stty -a" and see what "erase=" shows to determine if it matches.
If not then type "stty erase" and hit your backspace key - that should set it to match. You can hit stty -a afterwards to verify it.
Of course this assumes you're not using incorrect TERM value (echo $TERM to se that) or haven't done some odd mapping manually.
Thanks for the response.
Ctrl-v backspace returns ^?
partial return of stty -a:
intr = ^c; quit = ^\; erase = ^h; kill = ^u;
rprnt = ^r; flush = ^o; werase = ^?; lnext = ^v;
$TERM is set to xterm.
If I enter 'stty erase' and then hit the backspace key it simply erases 'erase' on the command line. No change is affected.