From: Zipizap zipizap Date: 2011-09-12T00:06:09+09:00 Subject: Re: Ruby Readline - do something when a key combination is pressed > It's possible but it's not clear if you're talking about invoking it in > irb or a unix shell. If in irb, you can invoke a ruby method as you'd > like if you put this in ~/.inputrc: > > $if Ruby > "\C-x\C-p": "toggle_object_complete\n" > $endif If it was a unix shell, what would be the solution? -- Posted via http://www.ruby-forum.com/.