From: Aldric Giacomoni Date: 2008-11-05T03:38:30+09:00 Subject: Re: Showing a spinner ? Great, thanks! What other special characters are there? Where can I find a list? (I know - I could probably just google that, so if you don't have it handy I'll go and do my own research when I get a chance). --Aldric Rodrigo Bermejo wrote: > Aldric Giacomoni wrote: >> How do I show a spinner on the command line interface when a ruby script >> is working? I sometimes write things that take a while, and I know I get >> impatient when all I see a blinking cursor :) >> A spinner has \ | / - all in one spot so it looks like a spinning wheel. >> >> Thanks! >> >> --Aldric > > Here is the idea ..you can make it better.. > > a=["-","\\","|","/"] > n=0 > while 1 do > print a[n % 4] > print "\b" > n+=1 > sleep 0.1 > puts "..#{n}." if (n % 50==0) > end > >