Skip to content
Snippets Groups Projects
Commit de5cedb3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't output \r char if stream is a file

parent 0d48b5ae
No related branches found
No related tags found
No related merge requests found
...@@ -470,7 +470,7 @@ void Msg::ProgressMeter(int n, int N, bool log, const char *fmt, ...) ...@@ -470,7 +470,7 @@ void Msg::ProgressMeter(int n, int N, bool log, const char *fmt, ...)
} }
#endif #endif
if(log && CTX::instance()->terminal){ if(!streamIsFile(stdout) && log && CTX::instance()->terminal){
fprintf(stdout, "%s \r", fprintf(stdout, "%s \r",
(n > N - 1) ? "" : str2); (n > N - 1) ? "" : str2);
fflush(stdout); fflush(stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment