progressBar: Use only stdout.

The progress markers of the progress bar were output to stderr while the
rest was output to stdout. Move everything to stdout.
This commit is contained in:
Vegard Storheil Eriksen 2021-09-20 15:14:23 +02:00
parent 3698b98976
commit 36783d74c4
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ void ProgressBar::display(int value, char force)
printInfo("\r" + _mess + ": [", false);
for (int z=0; z < nbEq; z++) {
fputc('=', stderr);
fputc('=', stdout);
}
fprintf(stderr, "%*s", (int)(_progressLen-nbEq), "");
fprintf(stdout, "%*s", (int)(_progressLen-nbEq), "");
char perc_str[11];
snprintf(perc_str, sizeof(perc_str), "] %3.2f%%", percent);
printInfo(perc_str, false);