From: Patrick Spence Date: 2006-11-04T04:39:45+09:00 Subject: Re: counter Lucas Handelsman wrote: > Thanks guys, I will give it a shot and let you know how it goes. Sorry about the lack of explanation for the code snippet in my previous reply... #-- simple counter from 1 to 50 1.upto(50) {|index| #-- print the number of backspaces necessary to delete the number, #-- this is what causes the number to appear to refresh print("\b" * index.to_s().length << index.to_s()) #-- pause 2/10's of a second before returning to top of loop sleep(0.2) } -- Posted via http://www.ruby-forum.com/.