system.c (8669) | system.c (8705) |
---|---|
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.26 1995/05/21 01:56:03 phk Exp $ | 7 * $Id: system.c,v 1.28 1995/05/21 06:12:44 phk 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 license" 15 * so buy him a beer if you like it! Buy him a beer for me, too! --- 208 unchanged lines hidden (view full) --- 224 225void 226systemChangeFont(const u_char font[]) 227{ 228 if (OnVTY && ColorDisplay) { 229 if (ioctl(0, PIO_FONT8x16, font) < 0) 230 msgConfirm("Sorry! Unable to load font for %s", getenv("LANG")); 231 } | 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 license" 15 * so buy him a beer if you like it! Buy him a beer for me, too! --- 208 unchanged lines hidden (view full) --- 224 225void 226systemChangeFont(const u_char font[]) 227{ 228 if (OnVTY && ColorDisplay) { 229 if (ioctl(0, PIO_FONT8x16, font) < 0) 230 msgConfirm("Sorry! Unable to load font for %s", getenv("LANG")); 231 } |
232 dialog_clear(); |
|
232} 233 234void 235systemChangeLang(char *lang) 236{ 237 variable_set2("LANG", lang); 238} 239 --- 6 unchanged lines hidden (view full) --- 246 if (OnVTY) { 247 if (ColorDisplay) { 248 setenv("TERM", color, 1); 249 setenv("TERMCAP", c_term, 1); 250 reset_shell_mode(); 251 setterm(color); 252 init_acs(); 253 cbreak(); noecho(); | 233} 234 235void 236systemChangeLang(char *lang) 237{ 238 variable_set2("LANG", lang); 239} 240 --- 6 unchanged lines hidden (view full) --- 247 if (OnVTY) { 248 if (ColorDisplay) { 249 setenv("TERM", color, 1); 250 setenv("TERMCAP", c_term, 1); 251 reset_shell_mode(); 252 setterm(color); 253 init_acs(); 254 cbreak(); noecho(); |
254 dialog_clear(); | |
255 } 256 else { 257 setenv("TERM", mono, 1); 258 setenv("TERMCAP", m_term, 1); 259 reset_shell_mode(); 260 setterm(mono); 261 init_acs(); 262 cbreak(); noecho(); | 255 } 256 else { 257 setenv("TERM", mono, 1); 258 setenv("TERMCAP", m_term, 1); 259 reset_shell_mode(); 260 setterm(mono); 261 init_acs(); 262 cbreak(); noecho(); |
263 dialog_clear(); | |
264 } | 263 } |
264 dialog_clear(); |
|
265 } 266} 267 268void 269systemChangeScreenmap(const u_char newmap[]) 270{ 271 if (OnVTY) { 272 if (ioctl(0, PIO_SCRNMAP, newmap) < 0) 273 msgConfirm("Sorry! Unable to load the screenmap for %s", 274 getenv("LANG")); | 265 } 266} 267 268void 269systemChangeScreenmap(const u_char newmap[]) 270{ 271 if (OnVTY) { 272 if (ioctl(0, PIO_SCRNMAP, newmap) < 0) 273 msgConfirm("Sorry! Unable to load the screenmap for %s", 274 getenv("LANG")); |
275 dialog_clear(); | |
276 } | 275 } |
276 dialog_clear(); |
|
277} | 277} |
278 |
|
278int 279vsystem(char *fmt, ...) 280{ 281 va_list args; 282 union wait pstat; 283 pid_t pid; 284 int omask; 285 sig_t intsave, quitsave; --- 69 unchanged lines hidden --- | 279int 280vsystem(char *fmt, ...) 281{ 282 va_list args; 283 union wait pstat; 284 pid_t pid; 285 int omask; 286 sig_t intsave, quitsave; --- 69 unchanged lines hidden --- |