From: Francis Cianfrocca Date: 2006-10-23T21:26:35+09:00 Subject: Re: Trouble using puts and getc in different threads ------=_Part_91265_20553949.1161606392890 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/23/06, Mark wrote: > > Hi, > > I was trying to do a little exercise: Display series of numbers > (1,2,3,4, 5....etc) in an infinite loop. The program should quit if > someone hits a specific key (ENTER in my case as the escape key > requires ugly solutions for non-buffered input). Sounds simple, right? > Not. I thought this should work: Try it on a Unix-like system. It will work. We've had several discussions here about an bad interaction between Ruby threads and system I/O on Windows, but I'm not sure anyone has gotten to the bottom of it. ------=_Part_91265_20553949.1161606392890--