From: nobu.nokada@... Date: 2002-08-06T03:13:12+09:00 Subject: Re: "gets" blocking process not thread (in Windows only) Hi, At Fri, 2 Aug 2002 23:02:32 +0900, Paul Brannan wrote: > > This limitation comes from that the current implementation uses > > select() in winsock. It works only for socket handles, so the > > others are treated as always immediately readable/writable. > > This problem has been known but still unsolved. > > What issues are there with using rb_f_select() instead? I meant that rb_f_select() is implemented with select(). > > And one more issue, windows console reports ready to I/O even > > when a mouse event occurs, but ruby doesn't want it. > > ReadConsoleInput should return the type of event, so even if a mouse > event occurs, you can ignore it. I've read VC runtime source and know it, but haven't tried to implement it. And I don't know how to determin whether a given handle is console input. -- Nobu Nakada