Home » Questions » Computers [ Ask a new question ]

.inputrc settings: delete-char and [] keybindings not working

.inputrc settings: delete-char and [] keybindings not working

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.

Asked by: Guest | Views: 232
Total answers/comments: 1
Guest [Entry]

"The solution was to introduce a conditional init construct:

$if ruby
""\M-["": ""[""
""\M-]"": ""]""
""\M-{"": ""{""
""\M-}"": ""}""
""\M-\\"": ""\\""
""\M-|"": ""|""
""\M-@"": ""@""
""\M-~"": ""~""
$else
""\e[1~"": beginning-of-line # home
""\e[2~"": paste-from-clipboard # insert
""\e[3~"": delete-char # delete
""\e[4~"": end-of-line # end
""\e[5~"": history-search-backward # pageup
""\e[6~"": history-search-forward # pagedown
$endif

But the original question: what is happening here still exists :)"