diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-29 01:43:20 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-29 01:43:20 +0000 |
commit | 79d387438f1dada6d7e6f916cbf9e914be3a0c3c (patch) | |
tree | 7b698b19bb460137d09987351c395e22ee5cb6ae /usr.sbin/sade/msg.c | |
parent | 570995b82cb452800f4827f23ce59bc9dd8cf989 (diff) | |
download | FreeBSD-src-79d387438f1dada6d7e6f916cbf9e914be3a0c3c.zip FreeBSD-src-79d387438f1dada6d7e6f916cbf9e914be3a0c3c.tar.gz |
Make the emergency holographic shell (on VTY4) actually work with job
control and signals and such. Thanks, Gary!
Clean up some miscellaneous bogons for Poul.
Diffstat (limited to 'usr.sbin/sade/msg.c')
-rw-r--r-- | usr.sbin/sade/msg.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/sade/msg.c b/usr.sbin/sade/msg.c index 3459e7e..e9b2ae6 100644 --- a/usr.sbin/sade/msg.c +++ b/usr.sbin/sade/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.24 1995/05/24 09:00:56 jkh Exp $ + * $Id: msg.c,v 1.25 1995/05/29 00:50:04 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -207,7 +207,8 @@ msgConfirm(char *fmt, ...) use_helpfile(NULL); w = dupwin(newscr); if (OnVTY) { - ioctl(0, VT_RELDISP, 0); /* Switch back */ + msgDebug("Switching back to VTY 0\n"); + ioctl(0, VT_RELDISP, 1); msgInfo(NULL); } dialog_notify(errstr); @@ -253,7 +254,8 @@ msgYesNo(char *fmt, ...) use_helpfile(NULL); w = dupwin(newscr); if (OnVTY) { - ioctl(0, VT_RELDISP, 0); /* Switch back */ + ioctl(0, VT_RELDISP, 1); /* Switch back */ + msgDebug("User decision requested (type ALT-F1)\n"); msgInfo(NULL); } ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1); @@ -286,7 +288,8 @@ msgGetInput(char *buf, char *fmt, ...) input_buffer[0] = '\0'; w = dupwin(newscr); if (OnVTY) { - ioctl(0, VT_RELDISP, 0); /* Switch back */ + msgDebug("Switching back to VTY 0\n"); + ioctl(0, VT_RELDISP, 1); /* Switch back */ msgInfo(NULL); } rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer); |