Gets() and Scite

Hi,
I am using sciTe for ruby 192
when ever i write gets() command it hangs
I read some people saying to write
$stdin.sync = true

on top of your source file
it didn’t work for me also
$stdout.flush
didn’t work either
can anyone please help me