From: Rahul Kumar Date: 2010-11-27T17:07:16+09:00 Subject: Re: Keypress event in ruby Nikita Kuznetsov wrote in post #964064: > Uum, that doesn't really answer my question, well it does.. ncurses also allows you to trap keystrokes, function keys, control and alt key combinations etc. IIRC, once you create a Window, you can do getch() on the window, and accept characters from the user. Once you have trapped the key (its very simple) then you can dispatch to the method you wish to. I suggest you install ncurses, and check out the samples. It will be very clear. -- Posted via http://www.ruby-forum.com/.