Lucas Handelsman wrote:
> but I don't want a linebreak after the counter is displayed.

You can set the varibale $\ (the output record separator for the print 
and IO#write, default is nil) to to a value you like.

irb(main):001:0> $\ = "_"
=> "_"
irb(main):002:0> [1, 2, 3].each {|i| print i}
1_2_3_=> [1, 2, 3]

This won't solve the flush problem, though.

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