From: cgf AT cygnus DOT com (Christopher G. Faylor) Subject: Re: Entering Characters during sleep ! 21 May 1998 15:36:45 GMT Message-ID: <6k1hmd$2js$1@cronkite.cygnus.com> References: <3561264F DOT 794BDF32 DOT cygnus DOT gnu-win32 AT msil DOT sps DOT mot DOT com> <6k1hjr$2jo$1 AT cronkite DOT cygnus DOT com> X-Newsreader: trn 4.0-test63 (15 March 1998) In article <6k1hjr$2jo$1 AT cronkite DOT cygnus DOT com>, Christopher G. Faylor wrote: >>Hi everyone, >> >>I have encountered a problem while running a program which do sleep >>before prompting for input. >>All the input characters that are entered during this time are not >>entered into the input buffer so it is as I didn't enter them at all. >> >>I have this small code which illustrates this problem. >>This problem doesn't happen neither on UNIX nor on MSVC. >>P.S. Instead of doing sleep I entered a big loop and it acted the same. >> >>Any ideas ? > >I think it's a bug. I've been puzzling over some code in cygwin >that explicitly flushes the input buffer prior to every standard read. >I've taken it out now. It should make it into B19.2 unless someone points out >some actual need for it. Btw, CYGWIN32=tty should work around this. cgf -- cgf AT cygnus DOT com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada