Deleted Added
full compact
system.c (161099) system.c (161115)
1/*
1/*
2 * $FreeBSD: head/usr.sbin/sade/system.c 161099 2006-08-08 13:45:46Z delphij $
2 * $FreeBSD: head/usr.sbin/sade/system.c 161115 2006-08-09 09:12:01Z netchild $
3 *
4 * Jordan Hubbard
5 *
6 * My contributions are in the public domain.
7 *
8 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
9 * previous version of sysinstall, and as such fall under his "BEERWARE license"
10 * so buy him a beer if you like it! Buy him a beer for me, too!

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

237 if (file_readable(buf))
238 return buf;
239 snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sade/help/%s.TXT", file);
240 if (file_readable(buf))
241 return buf;
242 return NULL;
243}
244
3 *
4 * Jordan Hubbard
5 *
6 * My contributions are in the public domain.
7 *
8 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
9 * previous version of sysinstall, and as such fall under his "BEERWARE license"
10 * so buy him a beer if you like it! Buy him a beer for me, too!

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

237 if (file_readable(buf))
238 return buf;
239 snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sade/help/%s.TXT", file);
240 if (file_readable(buf))
241 return buf;
242 return NULL;
243}
244
245void
246systemChangeTerminal(char *color, const u_char c_term[],
247 char *mono, const u_char m_term[])
248{
249 if (OnVTY) {
250 int setupterm(char *color, int, int *);
251
252 if (ColorDisplay) {
253 setenv("TERM", color, 1);
254 setenv("TERMCAP", c_term, 1);
255 reset_shell_mode();
256 setterm(color);
257 cbreak(); noecho();
258 }
259 else {
260 setenv("TERM", mono, 1);
261 setenv("TERMCAP", m_term, 1);
262 reset_shell_mode();
263 setterm(mono);
264 cbreak(); noecho();
265 }
266 }
267 clear();
268 refresh();
269 dialog_clear();
270}
271
272int
273vsystem(const char *fmt, ...)
274{
275 va_list args;
276 int pstat;
277 pid_t pid;
278 int omask;
279 sig_t intsave, quitsave;

--- 53 unchanged lines hidden ---
245int
246vsystem(const char *fmt, ...)
247{
248 va_list args;
249 int pstat;
250 pid_t pid;
251 int omask;
252 sig_t intsave, quitsave;

--- 53 unchanged lines hidden ---