On Aug 1, 2006, at 4:51 PM, Eric Armstrong wrote: > James Edward Gray II wrote: >> On Jul 31, 2006, at 10:51 PM, Eric Armstrong wrote: >>> a) There doesn't seem to be any equivalent for the >>> windows Kbhit. That's the nice little operation >>> that lets you ask whether there is a character >>> in the buffer, and proceed if there isn't any. >> Would the standard io/wait library work for this? > > It adds a ready?() method to IO objects. > ooohhhh. Dude! You're giving me chills! > > Found the API docs here: > http://stdlib.rubyonrails.org/libdoc/io/wait/rdoc/index.html > > What do I do to use it? This: > > require 'io/wait' That's the one, yes. > Once I get the require clause right, that adds > the methods to the IO class. > > Then it's a matter of figuring out how to use it > with Curses. I suppose I can do this: > > if $stdin.ready? then > c = stdscr.getch > ... > > Yes? I would think so, though I have never used curses. James Edward Gray II