diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-04-29 17:59:07 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-04-29 17:59:07 +0000 |
commit | 2908ba6ad76b6b2ed8bee6ce1a8c8f8f6d2ff98d (patch) | |
tree | 4377b561be8d2ede3d693b187688a680bd577d76 /usr.sbin | |
parent | 24b34f097bfe2b57f331ede1fbcfa2aa4888681d (diff) | |
download | src-2908ba6ad76b6b2ed8bee6ce1a8c8f8f6d2ff98d.tar.gz src-2908ba6ad76b6b2ed8bee6ce1a8c8f8f6d2ff98d.zip |
Fix a small display bogon with the progress indicators.
Notes
Notes:
svn path=/head/; revision=15449
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index ecd3d714a8eb..f77214e56c90 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; } |