Deleted Added
full compact
msg.c (8302) msg.c (8314)
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.3 1995/05/04 03:51:21 jkh Exp $
7 * $Id: msg.c,v 1.6 1995/05/05 23:47:44 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

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

53 int attrs;
54
55 errstr = (char *)malloc(FILENAME_MAX);
56 errstr[0] = '\0';
57 va_start(args, fmt);
58 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
59 va_end(args);
60 attrs = getattrs(stdscr);
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

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

53 int attrs;
54
55 errstr = (char *)malloc(FILENAME_MAX);
56 errstr[0] = '\0';
57 va_start(args, fmt);
58 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
59 va_end(args);
60 attrs = getattrs(stdscr);
61 attrset(A_BOLD);
61 attrset(A_REVERSE);
62 mvaddstr(23, 0, errstr);
63 attrset(attrs);
64 refresh();
65 free(errstr);
66}
67
68/* Whack up an informational message on the status line */
69void

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

96
97 errstr = (char *)malloc(FILENAME_MAX);
98 strcpy(errstr, "Warning: ");
99 va_start(args, fmt);
100 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
101 va_end(args);
102 attrs = getattrs(stdscr);
103 beep();
62 mvaddstr(23, 0, errstr);
63 attrset(attrs);
64 refresh();
65 free(errstr);
66}
67
68/* Whack up an informational message on the status line */
69void

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

96
97 errstr = (char *)malloc(FILENAME_MAX);
98 strcpy(errstr, "Warning: ");
99 va_start(args, fmt);
100 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
101 va_end(args);
102 attrs = getattrs(stdscr);
103 beep();
104 attrset(A_BOLD);
104 attrset(A_REVERSE);
105 mvaddstr(23, 0, errstr);
106 attrset(attrs);
107 refresh();
108 free(errstr);
109}
110
111/* Whack up an error on the status line */
112void

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

118
119 errstr = (char *)malloc(FILENAME_MAX);
120 strcpy(errstr, "Error: ");
121 va_start(args, fmt);
122 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
123 va_end(args);
124 beep();
125 attrs = getattrs(stdscr);
105 mvaddstr(23, 0, errstr);
106 attrset(attrs);
107 refresh();
108 free(errstr);
109}
110
111/* Whack up an error on the status line */
112void

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

118
119 errstr = (char *)malloc(FILENAME_MAX);
120 strcpy(errstr, "Error: ");
121 va_start(args, fmt);
122 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
123 va_end(args);
124 beep();
125 attrs = getattrs(stdscr);
126 attrset(A_BOLD);
126 attrset(A_REVERSE);
127 mvaddstr(23, 0, errstr);
128 attrset(attrs);
129 refresh();
130 free(errstr);
131}
132
133/* Whack up a fatal error on the status line */
134void

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

140
141 errstr = (char *)malloc(FILENAME_MAX);
142 strcpy(errstr, "Fatal Error: ");
143 va_start(args, fmt);
144 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
145 va_end(args);
146 beep();
147 attrs = getattrs(stdscr);
127 mvaddstr(23, 0, errstr);
128 attrset(attrs);
129 refresh();
130 free(errstr);
131}
132
133/* Whack up a fatal error on the status line */
134void

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

140
141 errstr = (char *)malloc(FILENAME_MAX);
142 strcpy(errstr, "Fatal Error: ");
143 va_start(args, fmt);
144 vsnprintf((char *)(errstr + strlen(errstr)), FILENAME_MAX, fmt, args);
145 va_end(args);
146 beep();
147 attrs = getattrs(stdscr);
148 attrset(A_BOLD);
148 attrset(A_REVERSE);
149 mvaddstr(23, 0, errstr);
150 addstr(" - ");
151 addstr("PRESS ANY KEY TO ");
152 if (getpid() == 1)
153 addstr("REBOOT");
154 else
155 addstr("QUIT");
156 attrset(attrs);

--- 86 unchanged lines hidden ---
149 mvaddstr(23, 0, errstr);
150 addstr(" - ");
151 addstr("PRESS ANY KEY TO ");
152 if (getpid() == 1)
153 addstr("REBOOT");
154 else
155 addstr("QUIT");
156 attrset(attrs);

--- 86 unchanged lines hidden ---