From: Nikita Kuznetsov Date: 2010-11-26T18:41:26+09:00 Subject: Re: Keypress event in ruby Uum, that doesn't really answer my question, well it does.. but i would look at that answer as a part 2 of my exercise... As i understood, the ncurses library lets you create guis, i dont want to create one at first. I would like to get more familiarised with ruby. and so i would be deeply appreciative if some1 would show some function something like: something like if myEvent.keyPress()==A do something end what i'm stuck at is, how would i create my own event class(i'm kind of guessing i will have to create an event class here) and i would like to make my own, that way i write the code and get more of the feel. class Event def keyPress() #help me here please :))) end -- Posted via http://www.ruby-forum.com/.