diff options
author | jkh <jkh@FreeBSD.org> | 1996-11-07 08:03:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-11-07 08:03:29 +0000 |
commit | 0096c37cc7c3e72bbdd505ef949ba848b2f8b1ce (patch) | |
tree | d2361de972591eca60efa43fc0e211301bfd2cb9 /usr.sbin/sysinstall/options.c | |
parent | e87ca66bb9d80209e28563e7dba5263da1ccc5a8 (diff) | |
download | FreeBSD-src-0096c37cc7c3e72bbdd505ef949ba848b2f8b1ce.zip FreeBSD-src-0096c37cc7c3e72bbdd505ef949ba848b2f8b1ce.tar.gz |
Joerg's changes to add screen font and screenmap setting.
Some changes of my own to make screen saver configuration a little
more sane, and also make it easier to get to the keyboard/screen
setup from the options menu.
Diffstat (limited to 'usr.sbin/sysinstall/options.c')
-rw-r--r-- | usr.sbin/sysinstall/options.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c index f7200f7..e9336dd 100644 --- a/usr.sbin/sysinstall/options.c +++ b/usr.sbin/sysinstall/options.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: options.c,v 1.43 1996/10/01 12:13:22 jkh Exp $ + * $Id: options.c,v 1.44 1996/10/02 01:30:37 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -93,6 +93,31 @@ mediaCheck(Option opt) return "<not yet set>"; } +static char * +consoleCheck(Option opt) +{ + static char opts[40]; + char *cp; + + opts[0] = '\0'; + cp = variable_get("saver"); + sprintf(&opts[strlen(opts)], "%s/", cp ?: "std"); + cp = variable_get("scrnmap"); + sprintf(&opts[strlen(opts)], "%s/", cp ?: "std"); + cp = variable_get("font8x8"); + sprintf(&opts[strlen(opts)], "%s", cp ?: "std"); + return opts; +} + +static int +consoleGetType(dialogMenuItem *self) +{ + int i; + + i = dmenuOpenSimple(&MenuSyscons, FALSE) ? DITEM_SUCCESS : DITEM_FAILURE; + return i | DITEM_RECREATE; +} + #define TAPE_PROMPT "Please enter the tape block size in 512 byte blocks:" #define RELNAME_PROMPT "Please specify the release you wish to load or\n\"none\" for a generic release install:" #define BPKG_PROMPT "Please specify the name of the HTML browser package:" @@ -128,6 +153,8 @@ static Option Options[] = { OPT_IS_VAR, BBIN_PROMPT, VAR_BROWSER_BINARY, varCheck }, { "Media Type", "The current installation media type.", OPT_IS_FUNC, mediaGetType, VAR_MEDIA_TYPE, mediaCheck }, +{ "Console Config", "Keyboard and font configuration.", + OPT_IS_FUNC, consoleGetType, "System console", consoleCheck }, { "Package Temp", "The directory where package temporary files should go", OPT_IS_VAR, PKG_PROMPT, VAR_PKG_TMPDIR, varCheck }, { "Use Defaults", "Reset all values to startup defaults", |