From: Tanaka Akira Date: 2005-09-27T12:08:48+09:00 Subject: Re: IO#getc behavior In article <000701c5c27a$d77058b0$0200000a@agamemnon>, "Jon A. Lambert" writes: > However I ran this under the msvc version of windows and what happens is > select() returns a ready state for $stdin whether a key is hit or not. > Then getc() blocks? because there's nothing yet to be gotten. Worse no I/O > seems to be going on until the user hits the return key and then whammo I > see either the end result of the loops or it appears more likely getc blocks > internally under cover until it sees a CR in the stream. > > Is there a workaround? I heard Ruby 1.9 is improved recently. See [ruby-talk:156899]. -- Tanaka Akira