Thanks for all the responses. I found them all useful. I never realised how \r works. I always thought it goes to the next line like \n. Turns out that's all I needed. However, I checked out some of the progressbars on CPAN as well as well the Doom style progress bar. Very useful.