From: Eric Armstrong Date: 2006-07-30T04:54:12+09:00 Subject: Re: ruby threads? the point? Jan Svitok wrote: > > kbhit returns whether there are any keystrokes in the buffer > getc returns them. > Nice! Didn't know about that kbhit. That has promise. I wonder if there is a multi-platform version of that API? With that capability, I can dispense with threads altogether, sleep for 1 second intervals, and look for keyboard input every time I wake up. A brain-dead implementation is good enough for this particular beast... :_)