summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-29 17:59:07 +0000
committerjkh <jkh@FreeBSD.org>1996-04-29 17:59:07 +0000
commit21b88d95499ab4d41edf0c5092b7980591bb9796 (patch)
tree4377b561be8d2ede3d693b187688a680bd577d76 /usr.sbin
parentcc39b8d5e5b9c2797cc5b5e6b195a80c3a9a732b (diff)
downloadFreeBSD-src-21b88d95499ab4d41edf0c5092b7980591bb9796.zip
FreeBSD-src-21b88d95499ab4d41edf0c5092b7980591bb9796.tar.gz
Fix a small display bogon with the progress indicators.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/dist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index ecd3d71..f77214e 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: dist.c,v 1.44 1996/04/28 00:37:29 jkh Exp $
+ * $Id: dist.c,v 1.45 1996/04/28 03:26:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -299,8 +299,10 @@ distExtract(char *parent, Distribution *me)
char *path, *dist, buf[10240];
const char *tmp;
Attribs *dist_attr;
+ WINDOW *w = savescr();
status = TRUE;
+ dialog_clear();
if (isDebug())
msgDebug("distExtract: parent: %s, me: %s\n", parent ? parent : "(none)", me->my_name);
@@ -388,6 +390,7 @@ distExtract(char *parent, Distribution *me)
goto punt;
}
snprintf(prompt, 80, "Extracting %s into %s directory...", me[i].my_name, me[i].my_dir);
+ dialog_clear();
dialog_gauge("Progress", prompt, 8, 15, 6, 50, (int)((float)(chunk + 1) / numchunks * 100));
move(0, 0); /* Get cursor out of the way - it makes gauges look strange */
while ((n = read(fd, buf, sizeof buf)) > 0) {
@@ -433,6 +436,7 @@ distExtract(char *parent, Distribution *me)
if (status)
*(me[i].my_mask) &= ~(me[i].my_bit);
}
+ restorescr(w);
return status;
}
OpenPOWER on IntegriCloud