"I had a look into stty to see if I could work out what was going on. stty controls your terminal line settings, and it has a slightly alarming array of options (see the man page for full details). stty - a shows the current settings. stty dec is shorthand for setting several options at once: echoe: Echo erase characters as backspace-space-backspace."