When I'm running a program I am used to killing it with ctrl-c, then pressing the up arrow in order to recover a previous command line, and then editing the text and running again. In Ubuntu 14.04 when I use backspace and type in new letters what I'm seeing in the terminal and what is actually getting run is not the same. Pressing ctrl-c and up after running the new bad command line reveals the garbled text of what was really executed- it looks like where I though the cursor is and where the terminal had it actually were in disagreement.
If I press ctrl-c a second time after the application quits I'll get back to a clean command line and can press up and edit normally. I believe this didn't need to be necessary, is there a setting I can change to also result in a good command line?
GNOME Terminal 3.6.2
$ stty -a speed 38400 baud; rows 48; columns 100; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke