Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am using XFCE Terminal emulator 0.4.8.

My ~/.inputrc file:

# Insert Key
"\e[2~": paste-from-clipboard
"\C-v": paste-from-clipboard
"\M-[3~": delete-char

When I click <Del> a tilde is printed instead of deleting the next character. When I remove .inputrc file, it starts working correctly. Googling showed, that this line:

"\M-[3~": delete-char

has helped people to cure this. But not me. I inserted this line into .inputrc, even deleted all the other lines. Doesn't work.

How to fix?

share|improve this question
"\e[3~": delete-char should work better – sendmoreinfo Sep 8 at 22:14
@sendmoreinfo This is great, but when I delete a line completely with Ctrl-D, using your code, it just closes the console. – user4035 Sep 8 at 22:17
That's C-d default action (to send EOF). You could change that with stty eof – sendmoreinfo Sep 8 at 22:21
@sendmoreinfo I used "export IGNOREEOF=42" to make 42 consecutive Ctrl-D clicks exist the shell. – user4035 Sep 9 at 7:30

Your Answer


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

Browse other questions tagged or ask your own question.