[nycphp-talk] CLI output question
Joel De Gan
joel at tagword.com
Wed Aug 17 18:27:32 EDT 2005
Was thinking about this some more and was poking around..
You could also go crazy and do this color... I had forgot about doing
this a while back..
posted the code here for doing termcolored graphs..
http://edit.peoplesdns.com/index.php?show=61
just term color stuff here:
http://edit.peoplesdns.com/index.php?show=61
cheers.
-joel
On Wed, 2005-08-17 at 17:40 -0400, Joel De Gan wrote:
> here is one I made the other day for doing a spin-cursor on FTP
> transfers:
>
> // just call with no arguments inside a loop.
> function progress(){
> global $spinnerpos;
> $spinner = array("/","-","\\","\\|","/","-","\\","\\|");
> passthru("printf \"\\b\"".$spinner[$spinnerpos] ." ");
> $spinnerpos=($spinnerpos +1)%8;
> }
>
> Cheers.
> -joel
>
>
> On Wed, 2005-08-17 at 14:11 -0400, David Mintz wrote:
> > Excellent -- I'm on my way. Thanks guys.
> >
> > ---
> > David Mintz
> > http://davidmintz.org/
More information about the talk
mailing list