-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolormap_win.go
112 lines (107 loc) · 5.4 KB
/
colormap_win.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//go:build (!darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris) || !cgo
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris !cgo
package textoutput
import (
"github.com/mgutz/ansi"
)
type ANSIColor string
var LightColorMap = map[string]ANSIColor{
"black": ANSIColor(ansi.ColorCode("black")),
"Black": ANSIColor(ansi.ColorCode("black")),
"red": ANSIColor(ansi.ColorCode("red+h")),
"Red": ANSIColor(ansi.ColorCode("red+h")),
"green": ANSIColor(ansi.ColorCode("green+h")),
"Green": ANSIColor(ansi.ColorCode("green+h")),
"yellow": ANSIColor(ansi.ColorCode("yellow+h")),
"Yellow": ANSIColor(ansi.ColorCode("yellow+h")),
"blue": ANSIColor(ansi.ColorCode("blue+h")),
"Blue": ANSIColor(ansi.ColorCode("blue+h")),
"magenta": ANSIColor(ansi.ColorCode("magenta+h")),
"Magenta": ANSIColor(ansi.ColorCode("magenta+h")),
"cyan": ANSIColor(ansi.ColorCode("cyan+h")),
"Cyan": ANSIColor(ansi.ColorCode("cyan+h")),
"gray": ANSIColor(ansi.ColorCode("white")),
"Gray": ANSIColor(ansi.ColorCode("white")),
"white": ANSIColor(ansi.ColorCode("white+h")),
"White": ANSIColor(ansi.ColorCode("white+h")),
"lightwhite": ANSIColor(ansi.ColorCode("white+h")),
"LightWhite": ANSIColor(ansi.ColorCode("white+h")),
"lightred": ANSIColor(ansi.ColorCode("red+h")),
"LightRed": ANSIColor(ansi.ColorCode("red+h")),
"lightgreen": ANSIColor(ansi.ColorCode("green+h")),
"LightGreen": ANSIColor(ansi.ColorCode("green+h")),
"lightyellow": ANSIColor(ansi.ColorCode("yellow+h")),
"LightYellow": ANSIColor(ansi.ColorCode("yellow+h")),
"lightblue": ANSIColor(ansi.ColorCode("blue+h")),
"LightBlue": ANSIColor(ansi.ColorCode("blue+h")),
"lightmagenta": ANSIColor(ansi.ColorCode("magenta+h")),
"LightMagenta": ANSIColor(ansi.ColorCode("magenta+h")),
"lightcyan": ANSIColor(ansi.ColorCode("cyan+h")),
"LightCyan": ANSIColor(ansi.ColorCode("cyan+h")),
"lightgray": ANSIColor(ansi.ColorCode("white")),
"LightGray": ANSIColor(ansi.ColorCode("white")),
"darkred": ANSIColor(ansi.ColorCode("red")),
"DarkRed": ANSIColor(ansi.ColorCode("red")),
"darkgreen": ANSIColor(ansi.ColorCode("green")),
"DarkGreen": ANSIColor(ansi.ColorCode("green")),
"darkyellow": ANSIColor(ansi.ColorCode("yellow")),
"DarkYellow": ANSIColor(ansi.ColorCode("yellow")),
"darkblue": ANSIColor(ansi.ColorCode("blue")),
"DarkBlue": ANSIColor(ansi.ColorCode("blue")),
"darkmagenta": ANSIColor(ansi.ColorCode("magenta")),
"DarkMagenta": ANSIColor(ansi.ColorCode("magenta")),
"darkcyan": ANSIColor(ansi.ColorCode("cyan")),
"DarkCyan": ANSIColor(ansi.ColorCode("cyan")),
"darkgray": ANSIColor(ansi.ColorCode("default")),
"DarkGray": ANSIColor(ansi.ColorCode("default")),
}
var DarkColorMap = map[string]ANSIColor{
"black": ANSIColor(ansi.ColorCode("black")),
"Black": ANSIColor(ansi.ColorCode("black")),
"red": ANSIColor(ansi.ColorCode("red")),
"Red": ANSIColor(ansi.ColorCode("red")),
"green": ANSIColor(ansi.ColorCode("green")),
"Green": ANSIColor(ansi.ColorCode("green")),
"yellow": ANSIColor(ansi.ColorCode("yellow")),
"Yellow": ANSIColor(ansi.ColorCode("yellow")),
"blue": ANSIColor(ansi.ColorCode("blue")),
"Blue": ANSIColor(ansi.ColorCode("blue")),
"magenta": ANSIColor(ansi.ColorCode("magenta")),
"Magenta": ANSIColor(ansi.ColorCode("magenta")),
"cyan": ANSIColor(ansi.ColorCode("cyan")),
"Cyan": ANSIColor(ansi.ColorCode("cyan")),
"gray": ANSIColor(ansi.ColorCode("default")),
"Gray": ANSIColor(ansi.ColorCode("default")),
"white": ANSIColor(ansi.ColorCode("white+b")),
"White": ANSIColor(ansi.ColorCode("white+b")),
"lightwhite": ANSIColor(ansi.ColorCode("white+b")),
"LightWhite": ANSIColor(ansi.ColorCode("white+b")),
"lightred": ANSIColor(ansi.ColorCode("red+h")),
"LightRed": ANSIColor(ansi.ColorCode("red+h")),
"lightgreen": ANSIColor(ansi.ColorCode("green+h")),
"LightGreen": ANSIColor(ansi.ColorCode("green+h")),
"lightyellow": ANSIColor(ansi.ColorCode("yellow+h")),
"LightYellow": ANSIColor(ansi.ColorCode("yellow+h")),
"lightblue": ANSIColor(ansi.ColorCode("blue+h")),
"LightBlue": ANSIColor(ansi.ColorCode("blue+h")),
"lightmagenta": ANSIColor(ansi.ColorCode("magenta+h")),
"LightMagenta": ANSIColor(ansi.ColorCode("magenta+h")),
"lightcyan": ANSIColor(ansi.ColorCode("cyan+h")),
"LightCyan": ANSIColor(ansi.ColorCode("cyan+h")),
"lightgray": ANSIColor(ansi.ColorCode("default")),
"LightGray": ANSIColor(ansi.ColorCode("default")),
"darkred": ANSIColor(ansi.ColorCode("red")),
"DarkRed": ANSIColor(ansi.ColorCode("red")),
"darkgreen": ANSIColor(ansi.ColorCode("green")),
"DarkGreen": ANSIColor(ansi.ColorCode("green")),
"darkyellow": ANSIColor(ansi.ColorCode("yellow")),
"DarkYellow": ANSIColor(ansi.ColorCode("yellow")),
"darkblue": ANSIColor(ansi.ColorCode("blue")),
"DarkBlue": ANSIColor(ansi.ColorCode("blue")),
"darkmagenta": ANSIColor(ansi.ColorCode("magenta")),
"DarkMagenta": ANSIColor(ansi.ColorCode("magenta")),
"darkcyan": ANSIColor(ansi.ColorCode("cyan")),
"DarkCyan": ANSIColor(ansi.ColorCode("cyan")),
"darkgray": ANSIColor(ansi.ColorCode("default")),
"DarkGray": ANSIColor(ansi.ColorCode("default")),
}