Re: Updating content on the line. (cli)
| From: | Adam Voigt | Date: | Wed, 03 Mar 2004 16:03:12 +0000 |
| Subject: | Re: Updating content on the line. (cli) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179350@lists.php.net to get a copy of this message | ||
I'm not sure of how you could do this, but one other thing you could do,
is like I've seen certain console FTP apps do, is just do a division of
the total size by whats downloaded, and have like 100 pound signs that
are gradually filled in as it downloads.
On Wed, 2004-03-03 at 10:53, Simon Fredriksson wrote:
> I'm building a download-manager script (like wget), in PHP. Does any of
> you know how I can update a line in the console? I've tried to echo
> chr(7) which is the backspace character, but it won't work. This kind of
> thing is seen in tons of console applications. Like some "please wait"
> thing that changes from - to \, |, /, and so on (looks like a rotating
> line).
>
> Ideas?
>
> //Simon
--
Adam Voigt
adam@kotisprop.com