Posted by adlerweb on 09/08/06 11:23
Just echo a \r
echo "10%";
echo "\r20%";
echo "\r100%\n";
should do the job
Iain Adams schrieb:
> 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
>
Navigation:
[Reply to this message]
|