Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '15 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 '15 at 22:17
That's C-d default action (to send EOF). You could change that with stty eof – sendmoreinfo Sep 8 '15 at 22:21
@sendmoreinfo I used "export IGNOREEOF=42" to make 42 consecutive Ctrl-D clicks exist the shell. – user4035 Sep 9 '15 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.