From: Eric Armstrong Date: 2006-08-01T12:31:43+09:00 Subject: Re: ruby threads? the point? Francis Cianfrocca wrote: > On 7/29/06, Eric Armstrong wrote: >> >> Nice! Didn't know about that kbhit. >> That has promise. I wonder if there is a >> multi-platform version of that API? > > > What happens if you just use select to read the file descriptor associated > with stdin? On Windows iirc, this descriptor is already raw. For Solaris > etc > you can just make it raw with termio calls. > Sounds promising. Do you have a bit of code to go with the suggestion, perchance? (I'm having a bit of trouble filling in the blanks.)