From: Nit Khair Date: 2008-11-01T01:46:17+09:00 Subject: Re: Roguelike project? Michael Fellinger wrote: > > http://github.com/manveru/ver > > esp: > http://github.com/manveru/ver/tree/master/lib/ver/keyboard.rb > http://github.com/manveru/ver/tree/master/lib/ver/window.rb > http://github.com/manveru/ver/tree/master/lib/ver/ncurses.rb > > I wrote a rougelike in ruby+ncurses, but the source isn't online > anymore, i can send you if you like :) > > ^ manveru Thanks manveru - could you tell me what keyboard.rb does in a nutshell. I simply bind keys using the "?\C-a" kind of notation to symbols or procs. I read your comment in window.rb of the bug that doesnt let you subclass window. I had a long discussion on this here, i was trying to subclass Form, iirc. Finally, someone said that the constructor was "shadowed", so one cannot make another one (I cannot recall the exact words), or maybe it was private. So i too had wrapped and delegated like you have. -- Posted via http://www.ruby-forum.com/.