diff options
author | Arnout Engelen <arnouten@bzzt.net> | 2013-08-20 21:13:02 +0200 |
---|---|---|
committer | Arnout Engelen <arnouten@bzzt.net> | 2013-08-20 21:13:02 +0200 |
commit | 4a4c5f8f42eb3babd7d4d48ab68152693539c4c5 (patch) | |
tree | ffc000ee55c8344ca8c3d158b0d427959e7ecbf9 | |
parent | 68fc957f48a436f6555bdb61a15c5c95812f4899 (diff) |
Update progress line instead of writing a whole new one
-rw-r--r-- | sfArkXTm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfArkXTm.cpp b/sfArkXTm.cpp index e2c5c8d..d644e05 100644 --- a/sfArkXTm.cpp +++ b/sfArkXTm.cpp @@ -156,11 +156,12 @@ void sfkl_UpdateProgress(int ProgressPercent) //ProgressBar[100] = '\0';
//printf(ProgressBar);
- //printf("\r");
+ printf("\r");
//printf("*");
- printf("Progress: %d%%\n", ProgressPercent);
- //if (ProgressPercent == 100) printf("\n");
+ printf("Progress: %d%%", ProgressPercent);
+ fflush(stdout);
+ if (ProgressPercent == 100) printf("\n");
return;
}
|