> But when I replaced 'sleep(0)' with an 
> infinite loop of 'command = gets', it freezes the whole application.

Correction: it was an infinite loop of 'sleep(1)' commands.
-- 
Posted via http://www.ruby-forum.com/.