printf(" of %-*s", (int)(ttywidth - r - strlen(buf)), buf);
}
last_update = now;
fflush(stdout);
if (current >= total)