]> Zhao Yanbai Git Server - minix.git/commitdiff
*** empty log message ***
authorBen Gras <ben@minix3.org>
Thu, 11 Aug 2005 16:00:08 +0000 (16:00 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Aug 2005 16:00:08 +0000 (16:00 +0000)
commands/simple/progressbar.c

index 10660320d25c56e703e389f45e97b7a414dad273..351076a8db37591c85e2759de3e5954fe17b0e2e 100755 (executable)
@@ -52,9 +52,9 @@ char *argv[];
                i++;
                printf("\e[K%s", line);
                if(i <= count) prettyprogress(i, count, start);
+               else printf("\r");
                printf("\e[A");
                fflush(NULL);
-               sleep(1);
        }
 
        fprintf(stderr, "\nDone.\e[K\n");