Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On Ubuntu (9.10) I have the problem that when I open a terminal (standard gnome terminal), the del key does not work. Instead it print a ~ character. When I open an new tab, it most of the time is resolved in this old tab, but not in the new one.

What can be the thing that is causing this? The gnome terminal compatibility settings are "ASCII DEL" for the backspace key and "Automatic" for the delete key.

One thing I noticed, when I ssh into a machine in a different network (with different account/bashrc etc.) the del key starts working. When I ssh into a machine here in the network with the same account/bashrc/bash_profile it still doesn't work.

What can I do to fix this?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Read "Consistent BackSpace and Delete Configuration", especially the section about "Bash":

"\e[3~": delete-char

try to put that to your .bashrc.

share|improve this answer
    
I just copied all the suggested code into .inputrc. Thanks for the help! –  Peter Smit Jul 16 '10 at 7:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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