From: Rahul Kumar Date: 2010-11-27T17:18:27+09:00 Subject: Re: Keypress event in ruby Nikita Kuznetsov wrote in post #964064: > def keyPress() > #help me here please :))) > end I've cut this from a sample that comes with ncurses. while((ch = win.getch()) != Ncurses::KEY_F1) do case(ch) when Ncurses::KEY_DOWN go_down() when Ncurses::KEY_UP go_up() when ... else end paint_screen() end # win is a window -- Posted via http://www.ruby-forum.com/.