From: Marc Heiler Date: 2011-12-22T01:04:31+09:00 Subject: Re: Ruby Readline - do something when a key combination is pressed > $if Ruby > "\C-x\C-p": "toggle_object_complete\n" > $endif Hmm. This seems useful. Can someone explain how this works? C-x and C-p is probably cursor x and cursor p, which then triggers a function in IRB? Is this possible with cursor keys as well? > If it was a unix shell, what would be the solution? Yes, I am curious about that as well. I want to add "directory browsing" to a pseudo-shell I am writing. If the user presses alt+left key or alt+right I want this to translate into "change directory one level down". Not sure how to get access to that though. -- Posted via http://www.ruby-forum.com/.