1package termenv
2
3const (
4	ANSIBlack ANSIColor = iota
5	ANSIRed
6	ANSIGreen
7	ANSIYellow
8	ANSIBlue
9	ANSIMagenta
10	ANSICyan
11	ANSIWhite
12	ANSIBrightBlack
13	ANSIBrightRed
14	ANSIBrightGreen
15	ANSIBrightYellow
16	ANSIBrightBlue
17	ANSIBrightMagenta
18	ANSIBrightCyan
19	ANSIBrightWhite
20)
21
22// RGB values of ANSI colors (0-255).
23var ansiHex = []string{
24	"#000000",
25	"#800000",
26	"#008000",
27	"#808000",
28	"#000080",
29	"#800080",
30	"#008080",
31	"#c0c0c0",
32	"#808080",
33	"#ff0000",
34	"#00ff00",
35	"#ffff00",
36	"#0000ff",
37	"#ff00ff",
38	"#00ffff",
39	"#ffffff",
40	"#000000",
41	"#00005f",
42	"#000087",
43	"#0000af",
44	"#0000d7",
45	"#0000ff",
46	"#005f00",
47	"#005f5f",
48	"#005f87",
49	"#005faf",
50	"#005fd7",
51	"#005fff",
52	"#008700",
53	"#00875f",
54	"#008787",
55	"#0087af",
56	"#0087d7",
57	"#0087ff",
58	"#00af00",
59	"#00af5f",
60	"#00af87",
61	"#00afaf",
62	"#00afd7",
63	"#00afff",
64	"#00d700",
65	"#00d75f",
66	"#00d787",
67	"#00d7af",
68	"#00d7d7",
69	"#00d7ff",
70	"#00ff00",
71	"#00ff5f",
72	"#00ff87",
73	"#00ffaf",
74	"#00ffd7",
75	"#00ffff",
76	"#5f0000",
77	"#5f005f",
78	"#5f0087",
79	"#5f00af",
80	"#5f00d7",
81	"#5f00ff",
82	"#5f5f00",
83	"#5f5f5f",
84	"#5f5f87",
85	"#5f5faf",
86	"#5f5fd7",
87	"#5f5fff",
88	"#5f8700",
89	"#5f875f",
90	"#5f8787",
91	"#5f87af",
92	"#5f87d7",
93	"#5f87ff",
94	"#5faf00",
95	"#5faf5f",
96	"#5faf87",
97	"#5fafaf",
98	"#5fafd7",
99	"#5fafff",
100	"#5fd700",
101	"#5fd75f",
102	"#5fd787",
103	"#5fd7af",
104	"#5fd7d7",
105	"#5fd7ff",
106	"#5fff00",
107	"#5fff5f",
108	"#5fff87",
109	"#5fffaf",
110	"#5fffd7",
111	"#5fffff",
112	"#870000",
113	"#87005f",
114	"#870087",
115	"#8700af",
116	"#8700d7",
117	"#8700ff",
118	"#875f00",
119	"#875f5f",
120	"#875f87",
121	"#875faf",
122	"#875fd7",
123	"#875fff",
124	"#878700",
125	"#87875f",
126	"#878787",
127	"#8787af",
128	"#8787d7",
129	"#8787ff",
130	"#87af00",
131	"#87af5f",
132	"#87af87",
133	"#87afaf",
134	"#87afd7",
135	"#87afff",
136	"#87d700",
137	"#87d75f",
138	"#87d787",
139	"#87d7af",
140	"#87d7d7",
141	"#87d7ff",
142	"#87ff00",
143	"#87ff5f",
144	"#87ff87",
145	"#87ffaf",
146	"#87ffd7",
147	"#87ffff",
148	"#af0000",
149	"#af005f",
150	"#af0087",
151	"#af00af",
152	"#af00d7",
153	"#af00ff",
154	"#af5f00",
155	"#af5f5f",
156	"#af5f87",
157	"#af5faf",
158	"#af5fd7",
159	"#af5fff",
160	"#af8700",
161	"#af875f",
162	"#af8787",
163	"#af87af",
164	"#af87d7",
165	"#af87ff",
166	"#afaf00",
167	"#afaf5f",
168	"#afaf87",
169	"#afafaf",
170	"#afafd7",
171	"#afafff",
172	"#afd700",
173	"#afd75f",
174	"#afd787",
175	"#afd7af",
176	"#afd7d7",
177	"#afd7ff",
178	"#afff00",
179	"#afff5f",
180	"#afff87",
181	"#afffaf",
182	"#afffd7",
183	"#afffff",
184	"#d70000",
185	"#d7005f",
186	"#d70087",
187	"#d700af",
188	"#d700d7",
189	"#d700ff",
190	"#d75f00",
191	"#d75f5f",
192	"#d75f87",
193	"#d75faf",
194	"#d75fd7",
195	"#d75fff",
196	"#d78700",
197	"#d7875f",
198	"#d78787",
199	"#d787af",
200	"#d787d7",
201	"#d787ff",
202	"#d7af00",
203	"#d7af5f",
204	"#d7af87",
205	"#d7afaf",
206	"#d7afd7",
207	"#d7afff",
208	"#d7d700",
209	"#d7d75f",
210	"#d7d787",
211	"#d7d7af",
212	"#d7d7d7",
213	"#d7d7ff",
214	"#d7ff00",
215	"#d7ff5f",
216	"#d7ff87",
217	"#d7ffaf",
218	"#d7ffd7",
219	"#d7ffff",
220	"#ff0000",
221	"#ff005f",
222	"#ff0087",
223	"#ff00af",
224	"#ff00d7",
225	"#ff00ff",
226	"#ff5f00",
227	"#ff5f5f",
228	"#ff5f87",
229	"#ff5faf",
230	"#ff5fd7",
231	"#ff5fff",
232	"#ff8700",
233	"#ff875f",
234	"#ff8787",
235	"#ff87af",
236	"#ff87d7",
237	"#ff87ff",
238	"#ffaf00",
239	"#ffaf5f",
240	"#ffaf87",
241	"#ffafaf",
242	"#ffafd7",
243	"#ffafff",
244	"#ffd700",
245	"#ffd75f",
246	"#ffd787",
247	"#ffd7af",
248	"#ffd7d7",
249	"#ffd7ff",
250	"#ffff00",
251	"#ffff5f",
252	"#ffff87",
253	"#ffffaf",
254	"#ffffd7",
255	"#ffffff",
256	"#080808",
257	"#121212",
258	"#1c1c1c",
259	"#262626",
260	"#303030",
261	"#3a3a3a",
262	"#444444",
263	"#4e4e4e",
264	"#585858",
265	"#626262",
266	"#6c6c6c",
267	"#767676",
268	"#808080",
269	"#8a8a8a",
270	"#949494",
271	"#9e9e9e",
272	"#a8a8a8",
273	"#b2b2b2",
274	"#bcbcbc",
275	"#c6c6c6",
276	"#d0d0d0",
277	"#dadada",
278	"#e4e4e4",
279	"#eeeeee",
280}
281