summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/doc.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-10-22 17:18:36 +0000
committerjkh <jkh@FreeBSD.org>1995-10-22 17:18:36 +0000
commit212c8f1ba7c62342e90ba294aac4b2e0e1faed00 (patch)
tree264780a26d573e1b062a3d5907d3060d9cddb874 /usr.sbin/sysinstall/doc.c
parent2b02753359669b49ee92eeb7a287b8155864a203 (diff)
downloadFreeBSD-src-212c8f1ba7c62342e90ba294aac4b2e0e1faed00.zip
FreeBSD-src-212c8f1ba7c62342e90ba294aac4b2e0e1faed00.tar.gz
Style changes. Clear the screen before a lot of error dialogs so that they
don't bogusly restore the screen to the message that was the cause of the abort. That resulted in lots of weird flickering dialog boxes that appeared to be displayed out of sequence.
Diffstat (limited to 'usr.sbin/sysinstall/doc.c')
-rw-r--r--usr.sbin/sysinstall/doc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/doc.c b/usr.sbin/sysinstall/doc.c
index 49fe798..d6a0b44 100644
--- a/usr.sbin/sysinstall/doc.c
+++ b/usr.sbin/sysinstall/doc.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: doc.c,v 1.2 1995/10/20 14:24:41 jkh Exp $
+ * $Id: doc.c,v 1.3 1995/10/22 01:32:42 jkh Exp $
*
* Jordan Hubbard
*
@@ -29,6 +29,7 @@ docBrowser(char *junk)
/* Make sure we were started at a reasonable time */
if (!strcmp(variable_get(SYSTEM_STATE), "init")) {
+ dialog_clear();
msgConfirm("Sorry, it's not possible to invoke the browser until the system\n"
"is installed completely enough to support a copy of %s.", browser);
return RET_FAIL;
@@ -38,7 +39,8 @@ docBrowser(char *junk)
return RET_FAIL;
/* First, make sure we have whatever browser we've chosen is here */
- if (package_extract(mediaDevice, browser) != RET_SUCCESS) {
+ if (package_add(browser) != RET_SUCCESS) {
+ dialog_clear();
msgConfirm("Unable to install the %s HTML browser package. You may\n"
"wish to verify that your media is configured correctly and\n"
"try again.", browser);
@@ -67,6 +69,7 @@ docShowDocument(char *str)
char *browser = variable_get(VAR_BROWSER_BINARY);
if (!file_executable(browser)) {
+ dialog_clear();
msgConfirm("Can't find the browser in %s! Please ensure that it's\n"
"properly set in the Options editor.", browser);
return RET_FAIL;
OpenPOWER on IntegriCloud