diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-19 16:58:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-19 16:58:58 +0000 |
commit | 931587f969e4765f54c9d490b8c9749107b69843 (patch) | |
tree | 47cea722239ce664ea672f0acdcacd061ae53225 /usr.sbin/sysinstall/system.c | |
parent | 215f4e150da0736c5efa2b949e29d048d292edb1 (diff) | |
download | FreeBSD-src-931587f969e4765f54c9d490b8c9749107b69843.zip FreeBSD-src-931587f969e4765f54c9d490b8c9749107b69843.tar.gz |
1. Incorporate Nickolay's ammended patches for Russian screenmap support
as per Andrey's letter. Make a few modifications for correctness.
2. Add Language menu back to first menu - it was too buried in the
Options menu.
3. Add size information to all distributions.
4. Add a compat20 distribution (we need to make one of these!! Any takers? Please?)
Submitted by: Nickolay N. Dudorov <nnd@gw.itfs.nsk.su> & jkh
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r-- | usr.sbin/sysinstall/system.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index fb98e35..d459203 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/sysinstall/system.c @@ -4,15 +4,16 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: system.c,v 1.17 1995/05/18 17:49:09 jkh Exp $ + * $Id: system.c,v 1.18 1995/05/19 04:17:38 jkh Exp $ * * Jordan Hubbard * * My contributions are in the public domain. * * Parts of this file are also blatently stolen from Poul-Henning Kamp's - * previous version of sysinstall, and as such fall under his "BEERWARE" - * license, so buy him a beer if you like it! Buy him a beer for me, too! + * previous version of sysinstall, and as such fall under his "BEERWARE license" + * so buy him a beer if you like it! Buy him a beer for me, too! + * Heck, get him completely drunk and send me pictures! :-) */ #include "sysinstall.h" @@ -46,6 +47,8 @@ systemWelcome(void) void systemInitialize(int argc, char **argv) { + int i; + signal(SIGINT, SIG_IGN); globalsInit(); @@ -75,6 +78,9 @@ systemInitialize(int argc, char **argv) setbuf(stderr, 0); } + for(i = 0; i < 256; i++) + default_scrnmap[i] = i; + if (set_termcap() == -1) { printf("Can't find terminal entry\n"); exit(-1); @@ -236,6 +242,8 @@ void systemChangeTerminal(char *color, const u_char c_term[], char *mono, const u_char m_term[]) { + extern void init_acs(void); + if (OnVTY) { if (ColorDisplay) { setenv("TERM", color, 1); @@ -258,6 +266,16 @@ systemChangeTerminal(char *color, const u_char c_term[], } } +void +systemChangeScreenmap(const u_char newmap[]) +{ + if (OnVTY) { + if (ioctl(0, PIO_SCRNMAP, newmap) < 0) + msgConfirm("Sorry! Unable to load the screenmap for %s", + getenv("LANG")); + } +} + /* Execute a system command, with varargs */ int vsystem(char *fmt, ...) |