From: Eric Hodel Date: 2006-03-27T16:16:56+09:00 Subject: Re: input without blocking On Mar 26, 2006, at 6:52 PM, yahn wrote: > How do you do something like gets but without blocking? All I want to > do is try to see if anything was input and if it wasn't then just > go on > running the rest of my code. Use threads. In one thread perform your IO. In your other thread do whatever it is you'd like to do while waiting for IO. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com