Deleted Added
full compact
system.c (8589) system.c (8601)
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: system.c,v 1.13 1995/05/18 02:42:33 jkh Exp $
7 * $Id: system.c,v 1.14 1995/05/18 09:02:02 jkh Exp $
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE"
15 * license, so buy him a beer if you like it! Buy him a beer for me, too!

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

216 }
217 return fname;
218}
219
220void
221systemChangeFont(const u_char font[])
222{
223 if (OnVTY) {
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE"
15 * license, so buy him a beer if you like it! Buy him a beer for me, too!

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

216 }
217 return fname;
218}
219
220void
221systemChangeFont(const u_char font[])
222{
223 if (OnVTY) {
224 if (ioctl(0, PIO_FONT8x14, font) < 0)
224 if (ioctl(0, PIO_FONT8x16, font) < 0)
225 msgConfirm("Sorry! Unable to load font for %s", getenv("LANG"));
226 }
227}
228
229void
230systemChangeLang(char *lang)
231{
232 variable_set2("LANG", lang);
233}
234
235void
236systemChangeTerminal(char *color, const u_char c_term[],
237 char *mono, const u_char m_term[])
238{
225 msgConfirm("Sorry! Unable to load font for %s", getenv("LANG"));
226 }
227}
228
229void
230systemChangeLang(char *lang)
231{
232 variable_set2("LANG", lang);
233}
234
235void
236systemChangeTerminal(char *color, const u_char c_term[],
237 char *mono, const u_char m_term[])
238{
239 if (!OnSerial) {
239 if (OnVTY) {
240 if (ColorDisplay) {
241 setenv("TERM", color, 1);
242 setenv("TERMCAP", c_term, 1);
240 if (ColorDisplay) {
241 setenv("TERM", color, 1);
242 setenv("TERMCAP", c_term, 1);
243 /* setterm(color); */
243 reset_shell_mode();
244 setterm(color);
245 init_acs();
246 cbreak(); noecho();
244 }
245 else {
246 setenv("TERM", mono, 1);
247 setenv("TERMCAP", m_term, 1);
247 }
248 else {
249 setenv("TERM", mono, 1);
250 setenv("TERMCAP", m_term, 1);
248 /* setterm(mono); */
251 reset_shell_mode();
252 setterm(mono);
253 init_acs();
254 cbreak(); noecho();
249 }
250 }
251}
252
255 }
256 }
257}
258
253void
254systemChangeScreenmap(const u_char newmap[])
255{
256 if (OnVTY) {
257 if (ioctl(0, PIO_SCRNMAP, newmap) < 0)
258 msgConfirm("Sorry! Unable to load the screenmap for %s",
259 getenv("LANG"));
260 }
261}
262
263/* Execute a system command, with varargs */
264int
265vsystem(char *fmt, ...)
266{
267 va_list args;
268 union wait pstat;
269 pid_t pid;
270 int omask;

--- 38 unchanged lines hidden ---
259/* Execute a system command, with varargs */
260int
261vsystem(char *fmt, ...)
262{
263 va_list args;
264 union wait pstat;
265 pid_t pid;
266 int omask;

--- 38 unchanged lines hidden ---