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:
parent
3698b98976
commit
36783d74c4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue