diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-03 01:03:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-03 01:03:26 +0200 |
commit | 1dea07391503d292860dd9ecb0ff1badcd23a804 (patch) | |
tree | 6bcdfa233ce330afc04dd67d82f5f0e09546251f /src/local | |
parent | cd276934fc86c7cb6c7ebc69cf0a6c27445bad0d (diff) | |
download | chawan-1dea07391503d292860dd9ecb0ff1badcd23a804.tar.gz |
cssvalues, color: use parseEnumNoCase more
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/term.nim | 6 |
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 ) |