Deleted Added
full compact
msg.c (8639) msg.c (8640)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: msg.c,v 1.15 1995/05/19 21:30:34 jkh Exp $
7 * $Id: msg.c,v 1.16 1995/05/20 07:50:20 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 60 unchanged lines hidden (view full) ---

76 va_start(args, fmt);
77 vsnprintf(errstr, FILENAME_MAX, fmt, args);
78 va_end(args);
79 attrs = getattrs(stdscr);
80 attrset(A_NORMAL);
81 mvaddstr(23, 0, errstr);
82 attrset(attrs);
83 refresh();
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 60 unchanged lines hidden (view full) ---

76 va_start(args, fmt);
77 vsnprintf(errstr, FILENAME_MAX, fmt, args);
78 va_end(args);
79 attrs = getattrs(stdscr);
80 attrset(A_NORMAL);
81 mvaddstr(23, 0, errstr);
82 attrset(attrs);
83 refresh();
84 if (OnVTY)
84 if (OnVTY) {
85 msgDebug("Informational message `%s'\n", errstr);
85 msgDebug("Informational message `%s'\n", errstr);
86 msgInfo("");
87 }
86 free(errstr);
87}
88
89/* Whack up a warning on the status line */
90void
91msgWarn(char *fmt, ...)
92{
93 va_list args;

--- 80 unchanged lines hidden (view full) ---

174 char *errstr;
175
176 errstr = (char *)safe_malloc(FILENAME_MAX);
177 va_start(args, fmt);
178 vsnprintf(errstr, FILENAME_MAX, fmt, args);
179 va_end(args);
180 use_helpline(NULL);
181 use_helpfile(NULL);
88 free(errstr);
89}
90
91/* Whack up a warning on the status line */
92void
93msgWarn(char *fmt, ...)
94{
95 va_list args;

--- 80 unchanged lines hidden (view full) ---

176 char *errstr;
177
178 errstr = (char *)safe_malloc(FILENAME_MAX);
179 va_start(args, fmt);
180 vsnprintf(errstr, FILENAME_MAX, fmt, args);
181 va_end(args);
182 use_helpline(NULL);
183 use_helpfile(NULL);
182 if (OnVTY)
184 if (OnVTY) {
183 msgDebug("User confirmation requested (type ALT-F1)\n");
185 msgDebug("User confirmation requested (type ALT-F1)\n");
186 msgInfo("");
187 }
184 dialog_notify(errstr);
185 free(errstr);
186}
187
188/* Put up a message in a popup information box */
189void
190msgNotify(char *fmt, ...)
191{

--- 22 unchanged lines hidden (view full) ---

214
215 errstr = (char *)safe_malloc(FILENAME_MAX);
216 va_start(args, fmt);
217 vsnprintf(errstr, FILENAME_MAX, fmt, args);
218 va_end(args);
219 use_helpline(NULL);
220 use_helpfile(NULL);
221 w = dupwin(newscr);
188 dialog_notify(errstr);
189 free(errstr);
190}
191
192/* Put up a message in a popup information box */
193void
194msgNotify(char *fmt, ...)
195{

--- 22 unchanged lines hidden (view full) ---

218
219 errstr = (char *)safe_malloc(FILENAME_MAX);
220 va_start(args, fmt);
221 vsnprintf(errstr, FILENAME_MAX, fmt, args);
222 va_end(args);
223 use_helpline(NULL);
224 use_helpfile(NULL);
225 w = dupwin(newscr);
222 if (OnVTY)
226 if (OnVTY) {
223 msgDebug("User decision requested (type ALT-F1)\n");
227 msgDebug("User decision requested (type ALT-F1)\n");
228 msgInfo("");
229 }
224 ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
225 touchwin(w);
226 wrefresh(w);
227 delwin(w);
228 free(errstr);
229 return ret;
230}
231

--- 13 unchanged lines hidden (view full) ---

245 va_end(args);
246 use_helpline(NULL);
247 use_helpfile(NULL);
248 if (buf)
249 strcpy(input_buffer, buf);
250 else
251 input_buffer[0] = '\0';
252 w = dupwin(newscr);
230 ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1);
231 touchwin(w);
232 wrefresh(w);
233 delwin(w);
234 free(errstr);
235 return ret;
236}
237

--- 13 unchanged lines hidden (view full) ---

251 va_end(args);
252 use_helpline(NULL);
253 use_helpfile(NULL);
254 if (buf)
255 strcpy(input_buffer, buf);
256 else
257 input_buffer[0] = '\0';
258 w = dupwin(newscr);
253 if (OnVTY)
259 if (OnVTY) {
254 msgDebug("User input requested (type ALT-F1)\n");
260 msgDebug("User input requested (type ALT-F1)\n");
261 msgInfo("");
262 }
255 rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
256 touchwin(w);
257 wrefresh(w);
258 delwin(w);
259 free(errstr);
260 if (!rval)
261 return input_buffer;
262 else

--- 20 unchanged lines hidden ---
263 rval = dialog_inputbox("Value Required", errstr, -1, -1, input_buffer);
264 touchwin(w);
265 wrefresh(w);
266 delwin(w);
267 free(errstr);
268 if (!rval)
269 return input_buffer;
270 else

--- 20 unchanged lines hidden ---