From: Bill Atkins Date: 2005-08-09T23:22:56+09:00 Subject: Poll STDIN for waiting input on Win32 How can I determine if there's input waiting on STDIN before calling gets? This code doesn't do the trick: ---- while true r, w, e = select [$stdin], [], [], 1 if r and r.include? $stdin puts "READY TO READ!" end end ----- Apparently, r always includes $stdin, so it just continuously prints "READY TO READ". -- Bill Atkins