elliottcable wrote: > Finally, even if the above weren't true, it won't work - because it > still blocks: http://gist.github.com/1895
Of course it does, because select is for blocking on multiple IOs. I suggested it to move input blocking from Ncurses to Ruby. If we put the input handling stuff into their seperate (green) thread, it works: --- [STDERR, STDOUT, STDIN].each {|io| io.sync = true if !io.sync } Thread.new do ready = select([STDIN]) if ready.flatten.include? STDIN foo = STDIN.gets p foo end end while true STDERR.puts '.' end --- HTH, Stephan _______________________________________________ Xmpp4r-devel mailing list Xmpp4r-devel@gna.org https://mail.gna.org/listinfo/xmpp4r-devel