.inputrc settings: delete-char and [] keybindings not working
- by tanascius
Hello,
I am using mingw under windows. When I am using ruby (irb) my 'special' characters like []{} and \ are not working. This is because of my german keyboard, where these keys are used together with AltGr (Alt + Ctrl). I found a solution for this here or here.
Now, when I add the line
"\M-[": "["
to my .inputrc file the delete-key no longer works. It is defined as usual:
"\e[3~": delete-char
Pressing delete just returns [3, while Ctrl + v, delete returns ^[[3~ as expected.
Somehow these two definitions in .inputrc do not work together. Any ideas?
EDIT:
It is only the delete key that is not working, my other bindings all work, like:
"\e[1~": beginning-of-line # home (ok)
"\e[2~": paste-from-clipboard # insert (ok)
"\e[3~": delete-char # delete (PROBLEM)
"\e[4~": end-of-line # end (ok)
"\e[5~": history-search-backward # pageup (ok)
"\e[6~": history-search-forward # pagedown (ok)