At least on Windows you can send chr(13), and then rebuild the entire line.
- Frank > 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 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php