tags:

views:

25

answers:

1

I am ssh-ing into a server and when I am editing files, the delete key does not delete; instead it prints "^?"

How can I fix this so that the delete key actually deletes the character before the cursor?

Thanks

+2  A: 

At the shell:

$ stty erase ^V<delete key>

where ^V is control-V, followed by the key you wish to use as the delete key. Then, of course, press Enter.

Andrew
what does the control-V do in this command?
jamesatha
Control-V puts the next character typed actually into the shell command instead of making it have whatever effect it may normally have.
Andrew