summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/options.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-11-07 08:03:29 +0000
committerjkh <jkh@FreeBSD.org>1996-11-07 08:03:29 +0000
commit0096c37cc7c3e72bbdd505ef949ba848b2f8b1ce (patch)
treed2361de972591eca60efa43fc0e211301bfd2cb9 /release/sysinstall/options.c
parente87ca66bb9d80209e28563e7dba5263da1ccc5a8 (diff)
downloadFreeBSD-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 'release/sysinstall/options.c')
-rw-r--r--release/sysinstall/options.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/release/sysinstall/options.c b/release/sysinstall/options.c
index f7200f7..e9336dd 100644
--- a/release/sysinstall/options.c
+++ b/release/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",
OpenPOWER on IntegriCloud