Re: Updating content on the line. (cli)

From: Date: Wed, 03 Mar 2004 16:25:03 +0000
Subject: Re: Updating content on the line. (cli)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-179354@lists.php.net to get a copy of this message
Well I bet it would work on Win32, it just depends on how much CYGWIN your willing to include with your program. I think all you would need is the basic CYGWIN DLL(s) and a terminal like bash (plus ncurses obviously). On Wed, 2004-03-03 at 11:07, Simon Fredriksson wrote: > Yes, that's one way. It's currently in development for Win32, but it > would be nice if it works on *nix later on aswell. Got a tip from a user > in a chatroom to use Ncurses for it, but then I can't use it on win32. > > Just to correct myself; it's chr(8) and not 7. > > //Simon > > Adam Voigt wrote: > > > 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

« previous php.general (#179354) next »