diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-21 00:19:24 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-21 00:19:24 +0100 |
commit | 940e6516955add573872231c1b8365c21dd62195 (patch) | |
tree | 6935d104f2d71377dc6150a2d37206764940f996 /src/types | |
parent | 7d6c75e4c737e51f997f2ac02001fad1a5627ca2 (diff) | |
download | chawan-940e6516955add573872231c1b8365c21dd62195.tar.gz |
Color stuff
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/color.nim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/types/color.nim b/src/types/color.nim index d0e13544..f631d60b 100644 --- a/src/types/color.nim +++ b/src/types/color.nim @@ -23,6 +23,29 @@ func `==`*(color1, color2: CellColor): bool = const defaultColor* = CellColor(rgb: false, color: 0) +const ANSIFGBlack* = CellColor(rgb: false, color: 38) +const ColorsANSIFg* = [ + CellColor(rgb: false, color: 30), # black + CellColor(rgb: false, color: 31), # red + CellColor(rgb: false, color: 32), # green + CellColor(rgb: false, color: 33), # yellow + CellColor(rgb: false, color: 34), # blue + CellColor(rgb: false, color: 35), # magenta + CellColor(rgb: false, color: 36), # cyan + CellColor(rgb: false, color: 37), # white +] + +const ColorsANSIBg* = [ + CellColor(rgb: false, color: 40), # black + CellColor(rgb: false, color: 41), # red + CellColor(rgb: false, color: 42), # green + CellColor(rgb: false, color: 43), # yellow + CellColor(rgb: false, color: 44), # blue + CellColor(rgb: false, color: 45), # magenta + CellColor(rgb: false, color: 46), # cyan + CellColor(rgb: false, color: 47), # white +] + const ColorsRGB* = { "aliceblue": 0xf0f8ff, "antiquewhite": 0xfaebd7, |