[nycphp-talk] CLI output question
Rolan Yang
rolan at omnistep.com
Wed Aug 17 23:15:12 EDT 2005
Hah. reminds me of Acid-ANSI from the BBS days.
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
>
>
>
>
More information about the talk
mailing list