Deleted Added
full compact
msg.c (16208) msg.c (16366)
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.34 1996/05/23 16:34:28 jkh Exp $
7 * $Id: msg.c,v 1.35 1996/06/08 09:08:43 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

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

94 memset(line, ' ', 80);
95 for (i = 0; i < 80; i++) {
96 if (errstr[i])
97 line[i] = errstr[i];
98 else
99 break;
100 }
101 line[80] = '\0';
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

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

94 memset(line, ' ', 80);
95 for (i = 0; i < 80; i++) {
96 if (errstr[i])
97 line[i] = errstr[i];
98 else
99 break;
100 }
101 line[80] = '\0';
102 attrset(title_attr);
102 attrset(ATTR_TITLE);
103 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, line);
104 attrset(attrs);
105 move(OnVTY ? VTY_STATLINE : TTY_STATLINE, 79);
106 refresh();
107}
108
109/* Whack up a warning on the status line */
110void

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

116
117 errstr = (char *)alloca(FILENAME_MAX);
118 strcpy(errstr, "Warning: ");
119 va_start(args, fmt);
120 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
121 va_end(args);
122 attrs = getattrs(stdscr);
123 beep();
103 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, line);
104 attrset(attrs);
105 move(OnVTY ? VTY_STATLINE : TTY_STATLINE, 79);
106 refresh();
107}
108
109/* Whack up a warning on the status line */
110void

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

116
117 errstr = (char *)alloca(FILENAME_MAX);
118 strcpy(errstr, "Warning: ");
119 va_start(args, fmt);
120 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
121 va_end(args);
122 attrs = getattrs(stdscr);
123 beep();
124 attrset(title_attr);
124 attrset(ATTR_TITLE);
125 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
126 attrset(attrs);
127 refresh();
128 if (OnVTY && isDebug())
129 msgDebug("Warning message `%s'\n", errstr);
130}
131
132/* Whack up an error on the status line */

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

139
140 errstr = (char *)alloca(FILENAME_MAX);
141 strcpy(errstr, "Error: ");
142 va_start(args, fmt);
143 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
144 va_end(args);
145 beep();
146 attrs = getattrs(stdscr);
125 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
126 attrset(attrs);
127 refresh();
128 if (OnVTY && isDebug())
129 msgDebug("Warning message `%s'\n", errstr);
130}
131
132/* Whack up an error on the status line */

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

139
140 errstr = (char *)alloca(FILENAME_MAX);
141 strcpy(errstr, "Error: ");
142 va_start(args, fmt);
143 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
144 va_end(args);
145 beep();
146 attrs = getattrs(stdscr);
147 attrset(title_attr);
147 attrset(ATTR_TITLE);
148 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
149 attrset(attrs);
150 refresh();
151 if (OnVTY && isDebug())
152 msgDebug("Error message `%s'\n", errstr);
153}
154
155/* Whack up a fatal error on the status line */

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

162
163 errstr = (char *)alloca(FILENAME_MAX);
164 strcpy(errstr, "Fatal Error: ");
165 va_start(args, fmt);
166 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
167 va_end(args);
168 beep();
169 attrs = getattrs(stdscr);
148 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
149 attrset(attrs);
150 refresh();
151 if (OnVTY && isDebug())
152 msgDebug("Error message `%s'\n", errstr);
153}
154
155/* Whack up a fatal error on the status line */

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

162
163 errstr = (char *)alloca(FILENAME_MAX);
164 strcpy(errstr, "Fatal Error: ");
165 va_start(args, fmt);
166 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
167 va_end(args);
168 beep();
169 attrs = getattrs(stdscr);
170 attrset(title_attr);
170 attrset(ATTR_TITLE);
171 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
172 addstr(" - ");
173 addstr("PRESS ANY KEY TO ");
174 if (getpid() == 1)
175 addstr("REBOOT");
176 else
177 addstr("QUIT");
178 attrset(attrs);

--- 161 unchanged lines hidden ---
171 mvaddstr(OnVTY ? VTY_STATLINE : TTY_STATLINE, 0, errstr);
172 addstr(" - ");
173 addstr("PRESS ANY KEY TO ");
174 if (getpid() == 1)
175 addstr("REBOOT");
176 else
177 addstr("QUIT");
178 attrset(attrs);

--- 161 unchanged lines hidden ---