summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-29 00:50:05 +0000
committerjkh <jkh@FreeBSD.org>1995-05-29 00:50:05 +0000
commit0fe7556fa5f2f63aa0b487fe8c761f0fe2b042b2 (patch)
tree58d029010cbf3d16628a9ceed4f7834b66424740 /usr.sbin/sysinstall/msg.c
parent3af08455beaf843caa7977ba2b77b18a1eb5c29f (diff)
downloadFreeBSD-src-0fe7556fa5f2f63aa0b487fe8c761f0fe2b042b2.zip
FreeBSD-src-0fe7556fa5f2f63aa0b487fe8c761f0fe2b042b2.tar.gz
Shrink the boot floppy by removing all extraneous stuff. Also increase
number of inodes. Fix various bugs reported by Poul. Implement VTY switching.
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index a90c50f..3459e7e 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.23 1995/05/23 02:41:15 jkh Exp $
+ * $Id: msg.c,v 1.24 1995/05/24 09:00:56 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,6 +43,8 @@
#include "sysinstall.h"
#include <stdarg.h>
+#include <sys/ioctl.h>
+#include <machine/console.h>
#define VTY_STATLINE 24
#define TTY_STATLINE 23
@@ -205,7 +207,7 @@ msgConfirm(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User confirmation requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
dialog_notify(errstr);
@@ -251,7 +253,7 @@ msgYesNo(char *fmt, ...)
use_helpfile(NULL);
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User decision requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
@@ -284,7 +286,7 @@ msgGetInput(char *buf, char *fmt, ...)
input_buffer[0] = '\0';
w = dupwin(newscr);
if (OnVTY) {
- msgDebug("User input requested (type ALT-F1)\n");
+ ioctl(0, VT_RELDISP, 0); /* Switch back */
msgInfo(NULL);
}
rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
OpenPOWER on IntegriCloud