diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-12 22:57:29 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-12 22:57:29 +0000 |
commit | f451377cc1194837ce579afc57bee6de28fe3344 (patch) | |
tree | 277679a4bc449648086ff289cdbd2878989636dc /mdk-stage1/stdio-frontend.c | |
parent | 5f740e74b9e2f27b2f3d500c75d9b4986a0a53ae (diff) | |
download | drakx-backup-do-not-use-f451377cc1194837ce579afc57bee6de28fe3344.tar drakx-backup-do-not-use-f451377cc1194837ce579afc57bee6de28fe3344.tar.gz drakx-backup-do-not-use-f451377cc1194837ce579afc57bee6de28fe3344.tar.bz2 drakx-backup-do-not-use-f451377cc1194837ce579afc57bee6de28fe3344.tar.xz drakx-backup-do-not-use-f451377cc1194837ce579afc57bee6de28fe3344.zip |
blah, don't include my test file in the repositoty
Diffstat (limited to 'mdk-stage1/stdio-frontend.c')
-rw-r--r-- | mdk-stage1/stdio-frontend.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mdk-stage1/stdio-frontend.c b/mdk-stage1/stdio-frontend.c index 27aa3782e..095c269a0 100644 --- a/mdk-stage1/stdio-frontend.c +++ b/mdk-stage1/stdio-frontend.c @@ -104,22 +104,21 @@ static int actually_drawn; void init_progression(char *msg, int size) { + int i; size_progress = size; actually_drawn = 0; printf("%s\n[", msg); + for (i=0; i<40; i++) + printf("."); + printf("]\033[G["); /* only works on ANSI-compatibles */ + fflush(stdout); } void update_progression(int current_size) { while ((int)((current_size*40)/size_progress) > actually_drawn) { - printf("."); + printf("*"); actually_drawn++; - if (actually_drawn == 10) - printf("(25%%)"); - if (actually_drawn == 20) - printf("(50%%)"); - if (actually_drawn == 30) - printf("(75%%)"); } fflush(stdout); } |