From: Hello There Date: 2009-05-17T07:23:05+09:00 Subject: Re: Console output Shot (Piotr Szotkowski) wrote: > Colin Bartlett: > >> Assuming I understand correctly what you want to do, >> on a Windows system to show progress in a "console" box >> I just repeatedly use (every second): >> print 13.chr + "text to show progress" > > Now that I think about the Original Poster’s prolem, I think > the solution needs to walk up and down the screen as well. :| > >> I hope it would also work in Linux. > > FWIW, your below code does run under Linux. :) > >> puts >> puts 'simple (Windows) example to show putting text on same console line' >> k = 13 >> k.times do | n | >> txt = 'count= ' + n.to_s >> print 13.chr + txt ## CR = CarriageReturn >> sleep 0.5 >> end >> puts ' *** final new line' >> puts > > — Shot Yes, it seems like the code above only is for one line, or? I need to update a whole table, many lines, is it tough luck =/ Thank you for answers -- Posted via http://www.ruby-forum.com/.