move the cursor to the start of the line before printing, instead of after
move the cursor to the start of the line before printing, instead of after

this stops error messages from printing on top of the progress bar

StoDevX/cs251-toolkit,StoDevX/cs251-toolkit,StoDevX/cs251-toolkit,StoDevX/cs251-toolkit