summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-12-17 02:46:04 +0000
committerjkh <jkh@FreeBSD.org>1999-12-17 02:46:04 +0000
commit38d1286e581917473f60cd947e43281e559fd94c (patch)
treebcf3f14373fab68c4b50c78d876b16c5865944cc /usr.sbin/sysinstall/msg.c
parentb2296f0762c91f487672db3080e56267b120707f (diff)
downloadFreeBSD-src-38d1286e581917473f60cd947e43281e559fd94c.zip
FreeBSD-src-38d1286e581917473f60cd947e43281e559fd94c.tar.gz
In retrospect, msgNotify() should leave its contents on the screen
longer to give the user something to look at while things are happening. Change it to do so and insert the appropriate screen saves elsewhere.
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index 3d7affe..499d705 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/sysinstall/msg.c
@@ -206,7 +206,6 @@ msgNotify(char *fmt, ...)
{
va_list args;
char *errstr;
- WINDOW *w = savescr();
errstr = (char *)alloca(FILENAME_MAX);
va_start(args, fmt);
@@ -217,8 +216,6 @@ msgNotify(char *fmt, ...)
if (isDebug())
msgDebug("Notify: %s\n", errstr);
dialog_msgbox(NULL, errstr, -1, -1, 0);
- sleep(1);
- restorescr(w);
}
/* Put up a message in a popup yes/no box and return 1 for YES, 0 for NO */
@@ -310,6 +307,7 @@ msgWeHaveOutput(char *fmt, ...)
use_helpfile(NULL);
msgDebug("Notify: %s\n", errstr);
dialog_clear_norefresh();
+ sleep(2);
dialog_msgbox(NULL, errstr, -1, -1, 0);
restorescr(w);
}
OpenPOWER on IntegriCloud