summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-12-18 02:29:24 +0000
committerjkh <jkh@FreeBSD.org>1999-12-18 02:29:24 +0000
commit597529e0d5661d66f3de031ae824a2a7d674c3b9 (patch)
treeaa666af64e8994434d92fbfee6cd6a619ea4f8e2 /usr.sbin
parent47050d6c137bce4f2a809114afa4ea393a454bc1 (diff)
downloadFreeBSD-src-597529e0d5661d66f3de031ae824a2a7d674c3b9.zip
FreeBSD-src-597529e0d5661d66f3de031ae824a2a7d674c3b9.tar.gz
Add more strategic screen clears
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 abb1d54..dc70a87 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -693,6 +693,7 @@ distExtract(char *parent, Distribution *me)
else if (fp > 0) {
char *dir = root_bias(me[i].my_dir);
+ dialog_clear_norefresh();
msgNotify("Extracting %s into %s directory...", dist, dir);
status = mediaExtractDist(dir, dist, fp);
fclose(fp);
@@ -716,6 +717,7 @@ distExtract(char *parent, Distribution *me)
mediaExtractDistBegin(root_bias(me[i].my_dir), &fd2, &zpid, &cpid);
/* And go for all the chunks */
+ dialog_clear_norefresh();
for (chunk = 0; chunk < numchunks; chunk++) {
int n, retval, last_msg;
char prompt[80];
@@ -793,6 +795,7 @@ distExtract(char *parent, Distribution *me)
done:
if (!status) {
+ dialog_clear_norefresh();
if (me[i].my_dist) {
msgConfirm("Unable to transfer all components of the %s distribution.\n"
"If this is a CDROM install, it may be because export restrictions prohibit\n"
@@ -805,7 +808,6 @@ distExtract(char *parent, Distribution *me)
me[i].my_name, mediaDevice->name);
if (!status)
--i;
- dialog_clear();
}
}
/* If extract was successful, remove ourselves from further consideration */
@@ -874,6 +876,7 @@ distExtractAll(dialogMenuItem *self)
while (Dists && ++retries < 3)
distExtract(NULL, DistTable);
+ dialog_clear_norefresh();
/* Only do bin fixup if bin dist was successfully extracted */
if ((old_dists & DIST_BIN) && !(Dists & DIST_BIN))
status |= installFixupBin(self);
@@ -887,6 +890,7 @@ distExtractAll(dialogMenuItem *self)
int col = 0;
buf[0] = '\0';
+ dialog_clear_norefresh();
printSelected(buf, Dists, DistTable, &col);
dialog_clear_norefresh();
msgConfirm("Couldn't extract the following distributions. This may\n"
OpenPOWER on IntegriCloud