summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-20 08:31:43 +0000
committerjkh <jkh@FreeBSD.org>1995-05-20 08:31:43 +0000
commitb00009a29ac9fc1ba5f3ce41b8d992a4c9b88e5e (patch)
tree6e27f2a0893b19c2726d34d3e053c5a01e621ec9 /usr.sbin/sysinstall/msg.c
parentb699cf290d2084f1a2dce3d0c923fde49a56521a (diff)
downloadFreeBSD-src-b00009a29ac9fc1ba5f3ce41b8d992a4c9b88e5e.zip
FreeBSD-src-b00009a29ac9fc1ba5f3ce41b8d992a4c9b88e5e.tar.gz
Totally re-work cpio_extract.
Erase the annoying "Command output is on debugging screen" message when it's time to switch back.
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index 40bf879..5213ced 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.15 1995/05/19 21:30:34 jkh Exp $
+ * $Id: msg.c,v 1.16 1995/05/20 07:50:20 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -81,8 +81,10 @@ msgInfo(char *fmt, ...)
mvaddstr(23, 0, errstr);
attrset(attrs);
refresh();
- if (OnVTY)
+ if (OnVTY) {
msgDebug("Informational message `%s'\n", errstr);
+ msgInfo("");
+ }
free(errstr);
}
@@ -179,8 +181,10 @@ msgConfirm(char *fmt, ...)
va_end(args);
use_helpline(NULL);
use_helpfile(NULL);
- if (OnVTY)
+ if (OnVTY) {
msgDebug("User confirmation requested (type ALT-F1)\n");
+ msgInfo("");
+ }
dialog_notify(errstr);
free(errstr);
}
@@ -219,8 +223,10 @@ msgYesNo(char *fmt, ...)
use_helpline(NULL);
use_helpfile(NULL);
w = dupwin(newscr);
- if (OnVTY)
+ if (OnVTY) {
msgDebug("User decision requested (type ALT-F1)\n");
+ msgInfo("");
+ }
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
touchwin(w);
wrefresh(w);
@@ -250,8 +256,10 @@ msgGetInput(char *buf, char *fmt, ...)
else
input_buffer[0] = '\0';
w = dupwin(newscr);
- if (OnVTY)
+ if (OnVTY) {
msgDebug("User input requested (type ALT-F1)\n");
+ msgInfo("");
+ }
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
touchwin(w);
wrefresh(w);
OpenPOWER on IntegriCloud