Brian Candler wrote: > It returns you to a command prompt? How odd. > > What about a threaded version of prg2.rb, does it behave any > differently? > > Thread.new do > while line = $stdin.gets > $stderr.puts ">>> Received #{line.chomp} <<<" > end > end > i = -2 > loop do > $stderr.puts i > i += 1 > sleep 2 > end Oh, my apologies, I had put the user info there to show that I was giving input (as if @echo hadn't been turned off). As for that program, it behaves almost the same way - locking up until user gives input, then displaying i if the 2 seconds have expired. -- Posted via http://www.ruby-forum.com/.