about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-03 01:03:26 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-03 01:03:26 +0200
commit1dea07391503d292860dd9ecb0ff1badcd23a804 (patch)
tree6bcdfa233ce330afc04dd67d82f5f0e09546251f /src/local
parentcd276934fc86c7cb6c7ebc69cf0a6c27445bad0d (diff)
downloadchawan-1dea07391503d292860dd9ecb0ff1badcd23a804.tar.gz
cssvalues, color: use parseEnumNoCase more
Diffstat (limited to 'src/local')
-rw-r--r--src/local/term.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/local/term.nim b/src/local/term.nim
index 1c3629e0..57f665ff 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -1369,10 +1369,12 @@ const ANSIColorMap = [
 ]
 
 proc newTerminal*(outfile: File; config: Config): Terminal =
+  const DefaultBackground = namedRGBColor("black").get
+  const DefaultForeground = namedRGBColor("white").get
   return Terminal(
     outfile: outfile,
     config: config,
-    defaultBackground: ColorsRGB["black"],
-    defaultForeground: ColorsRGB["white"],
+    defaultBackground: DefaultBackground,
+    defaultForeground: DefaultForeground,
     colorMap: ANSIColorMap
   )