Hi all,

I iterate an array. During jumping from one element to the next one I
need to get user input from the console. 1) If not input after 5 seconds
I have to  jump to the next element. 2)If there is an input within 5
seconds I go for  processing the input and then jump to the next
element.

I don't know how to implement the code for question 1. I wonder if
anyone there has a good idea.


Thanks,

Li
-- 
Posted via http://www.ruby-forum.com/.