diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-20 10:33:14 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-20 10:33:14 +0000 |
commit | f10eb488f667ad2b0e855fcc2ac3747e787f9695 (patch) | |
tree | fe34e20c28206a242583f4afa84e1c0ce9c247b8 /release/sysinstall/msg.c | |
parent | 2cf252e087dabd4f80ff2f6bec8b0313b707dd0b (diff) |
1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.
2. Totally rework device registration. It's about half the size and
more powerful now.
3. Add DOS discovery.
4. Start filling in some of the strategy routines.
5. Another clean-up pass over the menus.
6. Make wizard code use Disk typedef.
If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.
Notes
Notes:
svn path=/head/; revision=8641
Diffstat (limited to 'release/sysinstall/msg.c')
-rw-r--r-- | release/sysinstall/msg.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/release/sysinstall/msg.c b/release/sysinstall/msg.c index 5213ced6a70d..5acd662f5765 100644 --- a/release/sysinstall/msg.c +++ b/release/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.16 1995/05/20 07:50:20 jkh Exp $ + * $Id: msg.c,v 1.17 1995/05/20 08:31:42 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -72,6 +72,12 @@ msgInfo(char *fmt, ...) char *errstr; int attrs; + /* NULL is a special convention meaning "erase the old stuff" */ + if (!fmt) { + move(23, 0); + clrtoeol(); + return; + } errstr = (char *)safe_malloc(FILENAME_MAX); va_start(args, fmt); vsnprintf(errstr, FILENAME_MAX, fmt, args); @@ -83,7 +89,7 @@ msgInfo(char *fmt, ...) refresh(); if (OnVTY) { msgDebug("Informational message `%s'\n", errstr); - msgInfo(""); + msgInfo(NULL); } free(errstr); } @@ -183,7 +189,7 @@ msgConfirm(char *fmt, ...) use_helpfile(NULL); if (OnVTY) { msgDebug("User confirmation requested (type ALT-F1)\n"); - msgInfo(""); + msgInfo(NULL); } dialog_notify(errstr); free(errstr); @@ -225,7 +231,7 @@ msgYesNo(char *fmt, ...) w = dupwin(newscr); if (OnVTY) { msgDebug("User decision requested (type ALT-F1)\n"); - msgInfo(""); + msgInfo(NULL); } ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1); touchwin(w); @@ -258,7 +264,7 @@ msgGetInput(char *buf, char *fmt, ...) w = dupwin(newscr); if (OnVTY) { msgDebug("User input requested (type ALT-F1)\n"); - msgInfo(""); + msgInfo(NULL); } rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer); touchwin(w); |