In one of my remote machines, I try to use vim to edit a file.

When I press the Backspace key, the output is not deleting my character but adding ^? which is in a different color.

What is this and how can I avoid it?

link|improve this question

69% accept rate
I assumed you meant the backspace key, is that correct? Also, where are you connecting from (which Terminal?), and where are you connecting to? – slhck Jul 31 '11 at 12:00
^ What he said + which shell are you using and what is the value of the $TERM environment variable? (echo $TERM). – Carpetsmoker Jul 31 '11 at 12:19
i am connecting to a remote machine. i echo $TERM, it is xterm. My term in local is gnome-terminal. – Kit Ho Jul 31 '11 at 13:48
feedback

1 Answer

up vote 0 down vote accepted

This was known bug in Xterm which produced the wrong backspace character.. Upgrading to the latest version of XTerm should fix the issue. Otherwise, you can use a workaround the issue by adding

*ttyModes: erase ^?

to /etc/X11/app-defaults/XTerm.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.