summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-16 11:37:27 +0000
committerjkh <jkh@FreeBSD.org>1995-05-16 11:37:27 +0000
commit56016c7548b0eaa3e7190993e87b7b8d0a0bd02c (patch)
treeb37ec9f9cf4478f56803d142759b8dc671accdd9 /usr.sbin/sysinstall/msg.c
parent3f349e7ec85ac3affae816bfa10292b655d4eb44 (diff)
downloadFreeBSD-src-56016c7548b0eaa3e7190993e87b7b8d0a0bd02c.zip
FreeBSD-src-56016c7548b0eaa3e7190993e87b7b8d0a0bd02c.tar.gz
This will now compile and even scribble helpfully on your disks.
It remains to be seen how successfully. The distribution loading code is still not here yet, but the partition/newfs/mount/cpio-extract cycle is as complete as it's ever going to get, modulo possible bug fixes. The TCP/IP setup screen is also sort of here, albeit in a highly-changing state due to the fact that per-interface information isn't being kept right now but is being added (thanks, Gary!).
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index 8e2a797..b861f12 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/sysinstall/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.9 1995/05/08 06:06:26 jkh Exp $
+ * $Id: msg.c,v 1.10 1995/05/11 06:10:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -171,7 +171,7 @@ msgConfirm(char *fmt, ...)
va_end(args);
use_helpline(NULL);
use_helpfile(NULL);
- dialog_mesgbox("User Attention Requested", errstr, -1, -1);
+ dialog_notify(errstr);
free(errstr);
}
@@ -181,6 +181,7 @@ msgNotify(char *fmt, ...)
{
va_list args;
char *errstr;
+ WINDOW *w;
errstr = (char *)safe_malloc(FILENAME_MAX);
va_start(args, fmt);
@@ -188,7 +189,11 @@ msgNotify(char *fmt, ...)
va_end(args);
use_helpline(NULL);
use_helpfile(NULL);
+ w = dupwin(newscr);
dialog_msgbox("Information Dialog", errstr, -1, -1, 0);
+ touchwin(w);
+ wrefresh(w);
+ delwin(w);
free(errstr);
}
@@ -199,6 +204,7 @@ msgYesNo(char *fmt, ...)
va_list args;
char *errstr;
int ret;
+ WINDOW *w;
errstr = (char *)safe_malloc(FILENAME_MAX);
va_start(args, fmt);
@@ -206,7 +212,11 @@ msgYesNo(char *fmt, ...)
va_end(args);
use_helpline(NULL);
use_helpfile(NULL);
+ w = dupwin(newscr);
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
+ touchwin(w);
+ wrefresh(w);
+ delwin(w);
free(errstr);
return ret;
}
@@ -219,6 +229,7 @@ msgGetInput(char *buf, char *fmt, ...)
char *errstr;
static char input_buffer[256];
int rval;
+ WINDOW *w;
errstr = (char *)safe_malloc(FILENAME_MAX);
va_start(args, fmt);
@@ -230,7 +241,11 @@ msgGetInput(char *buf, char *fmt, ...)
strcpy(input_buffer, buf);
else
input_buffer[0] = '\0';
+ w = dupwin(newscr);
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
+ touchwin(w);
+ wrefresh(w);
+ delwin(w);
free(errstr);
if (!rval)
return input_buffer;
OpenPOWER on IntegriCloud