about summary refs log tree commit diff stats
path: root/src/LYReadCFG.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2001-02-13 01:44:28 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2001-02-13 01:44:28 -0500
commitaffaa4f761ddf2c0edce3e00f3a989a0ef8a44d8 (patch)
tree3da4fcaa7cba63a893e69b0e6737b6eb4cea4079 /src/LYReadCFG.c
parent2a786b2632ff4fe945cb5826f7a378778caf72eb (diff)
downloadlynx-snapshots-affaa4f761ddf2c0edce3e00f3a989a0ef8a44d8.tar.gz
snapshot of project "lynx", label v2-8-4dev_18
Diffstat (limited to 'src/LYReadCFG.c')
-rw-r--r--src/LYReadCFG.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index 5f4668b9..814da7e4 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -400,6 +400,17 @@ PUBLIC int check_color ARGS2(
     CTRACE((tfp, "=> ERR_COLOR\n"));
     return ERR_COLOR;
 }
+
+PUBLIC CONST char *lookup_color ARGS1(
+    int,	code)
+{
+    unsigned n;
+    for (n = 0; n < 16; n++) {
+	if ((int) ColorCode(n) == code)
+	    return Color_Strings[n];
+    }
+    return "default";
+}
 #endif /* USE_COLOR_STYLE || USE_COLOR_TABLE */
 
 #if defined(USE_COLOR_TABLE)
@@ -1614,7 +1625,7 @@ static Config_Type Config_Table [] =
      PARSE_STR("system_mail_flags", CONF_STR, &system_mail_flags),
      PARSE_SET("tagsoup", CONF_BOOL, &Old_DTD),
 #ifdef TEXTFIELDS_MAY_NEED_ACTIVATION
-     PARSE_SET("textfields_need_activation", CONF_BOOL, &textfields_need_activation),
+     PARSE_SET("textfields_need_activation", CONF_BOOL, &global_textfields_need_activation),
 #endif
 #if defined(_WINDOWS)
      PARSE_INT("timeout", CONF_INT, &lynx_timeout),