I am creating a small console app that needs a progress bar. Something like...
Conversion: 175/348 Seconds |========== | 50%
My
\r did the trick.
For future reference, \b does not work in PHP in Linux. I was curious - so I did a couple of experiments in other languages as well(I did this in Linux - I don't know if the result will be the same in Windows/Mac)..
\b Works in...
puts -nonewline "Hello\b"\b Doesn't work in
print "Hello\b"; prints out Hello\bprint "Hello\b" prints out Hello . Same result with print "Hello\b",