terminal php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hey I want to be able to show a percentage complete number in a
terminal, such that when the percentage gets bigger it replaces the old
value on the terminal screen. At the moment I just echo the value and
in the terminal window the values appear 1 after the other. i.e
123456789101112 but i want the new values to replace the old ones. Is
this possible

Re: terminal php

Just echo a \r

echo "10%";
echo "\r20%";
echo "\r100%\n";

should do the job

Iain Adams schrieb:
Quoted text here. Click to load it

Re: terminal php

This makes me look like a noob but I always wondered what return did.
adlerweb wrote:

Quoted text here. Click to load it

Site Timeline