- printf(": [%s] [%3.1f%% done] [%6u/%6u kb/s] [eta %s]", run_str, perc, rate[0], rate[1], eta_str);
+ linelen = printf(": [%s] [%3.1f%% done] [%6u/%6u kb/s] [eta %s]",
+ run_str, perc, rate[0], rate[1], eta_str);
+ if (linelen >= 0 && linelen < linelen_last)
+ printf("%*s", linelen_last-linelen, "");
+ linelen_last = linelen;