-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.go
415 lines (324 loc) · 9.11 KB
/
tables.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
// Copyright 2021-2024 Takashi Takizawa. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Code generated by running go generate in github.com/ttkzw/go-color. DO NOT EDIT.
package color
// Foreground color name
const (
// Default foreground color
Default = Color(iota)
/*
* system colors for foreground colors
*/
// Black for system foreground color
SystemBlack
// Red for system foreground color
SystemRed
// Green for system foreground color
SystemGreen
// Yellow for system foreground color
SystemYellow
// Blue for system foreground color
SystemBlue
// Magenta for system foreground color
SystemMagenta
// Cyan for system foreground color
SystemCyan
// White for system foreground color
SystemWhite
// BrightBlack for system foreground color
SystemBrightBlack
// BrightRed for system foreground color
SystemBrightRed
// BrightGreen for system foreground color
SystemBrightGreen
// BrightYellow for system foreground color
SystemBrightYellow
// BrightBlue for system foreground color
SystemBrightBlue
// BrightMagenta for system foreground color
SystemBrightMagenta
// BrightCyan for system foreground color
SystemBrightCyan
// BrightWhite for system foreground color
SystemBrightWhite
/*
* 8-bit colors for foreground colors
*/
// Red: HTML Hex Color Code #FF0000, Ansi 8-bit Color Index 196
Red
// Orange: HTML Hex Color Code #FF8700, Ansi 8-bit Color Index 208
Orange
// Yellow: HTML Hex Color Code #FFFF00, Ansi 8-bit Color Index 226
Yellow
// Chartreuse: HTML Hex Color Code #87FF00, Ansi 8-bit Color Index 118
Chartreuse
// Green: HTML Hex Color Code #00FF00, Ansi 8-bit Color Index 46
Green
// SpringGreen: HTML Hex Color Code #00FF87, Ansi 8-bit Color Index 48
SpringGreen
// Cyan: HTML Hex Color Code #00FFFF, Ansi 8-bit Color Index 51
Cyan
// Azure: HTML Hex Color Code #0087FF, Ansi 8-bit Color Index 33
Azure
// Blue: HTML Hex Color Code #0000FF, Ansi 8-bit Color Index 21
Blue
// Violet: HTML Hex Color Code #8700FF, Ansi 8-bit Color Index 93
Violet
// Magenta: HTML Hex Color Code #FF00FF, Ansi 8-bit Color Index 201
Magenta
// Rose: HTML Hex Color Code #FF0087, Ansi 8-bit Color Index 198
Rose
// White: HTML Hex Color Code #FFFFFF, Ansi 8-bit Color Index 231
White
// Silver: HTML Hex Color Code #BCBCBC, Ansi 8-bit Color Index 250
Silver
// Grey: HTML Hex Color Code #808080, Ansi 8-bit Color Index 244
Grey
// Black: HTML Hex Color Code #000000, Ansi 8-bit Color Index 16
Black
)
var colorNames = []string{
// Default foreground color
"Default",
/*
* system colors for foreground colors
*/
"SystemBlack",
"SystemRed",
"SystemGreen",
"SystemYellow",
"SystemBlue",
"SystemMagenta",
"SystemCyan",
"SystemWhite",
"SystemBrightBlack",
"SystemBrightRed",
"SystemBrightGreen",
"SystemBrightYellow",
"SystemBrightBlue",
"SystemBrightMagenta",
"SystemBrightCyan",
"SystemBrightWhite",
/*
* 8-bit colors for foreground colors
*/
"Red",
"Orange",
"Yellow",
"Chartreuse",
"Green",
"SpringGreen",
"Cyan",
"Azure",
"Blue",
"Violet",
"Magenta",
"Rose",
"White",
"Silver",
"Grey",
"Black",
}
var colorParameters = [...]string{
// Default foreground color
Default: "39",
/*
* system colors for foreground colors
*/
SystemBlack: "30",
SystemRed: "31",
SystemGreen: "32",
SystemYellow: "33",
SystemBlue: "34",
SystemMagenta: "35",
SystemCyan: "36",
SystemWhite: "37",
SystemBrightBlack: "90",
SystemBrightRed: "91",
SystemBrightGreen: "92",
SystemBrightYellow: "93",
SystemBrightBlue: "94",
SystemBrightMagenta: "95",
SystemBrightCyan: "96",
SystemBrightWhite: "97",
/*
* 8-bit colors for foreground colors
*/
Red: "38;5;196",
Orange: "38;5;208",
Yellow: "38;5;226",
Chartreuse: "38;5;118",
Green: "38;5;46",
SpringGreen: "38;5;48",
Cyan: "38;5;51",
Azure: "38;5;33",
Blue: "38;5;21",
Violet: "38;5;93",
Magenta: "38;5;201",
Rose: "38;5;198",
White: "38;5;231",
Silver: "38;5;250",
Grey: "38;5;244",
Black: "38;5;16",
}
// Background color name
const (
// Default background color
DefaultBackground = BackgroundColor(iota)
/*
* system colors for background colors
*/
// Black for system background color
SystemBlackBackground
// Red for system background color
SystemRedBackground
// Green for system background color
SystemGreenBackground
// Yellow for system background color
SystemYellowBackground
// Blue for system background color
SystemBlueBackground
// Magenta for system background color
SystemMagentaBackground
// Cyan for system background color
SystemCyanBackground
// White for system background color
SystemWhiteBackground
// BrightBlack for system background color
SystemBrightBlackBackground
// BrightRed for system background color
SystemBrightRedBackground
// BrightGreen for system background color
SystemBrightGreenBackground
// BrightYellow for system background color
SystemBrightYellowBackground
// BrightBlue for system background color
SystemBrightBlueBackground
// BrightMagenta for system background color
SystemBrightMagentaBackground
// BrightCyan for system background color
SystemBrightCyanBackground
// BrightWhite for system background color
SystemBrightWhiteBackground
/*
* 8-bit colors for background colors
*/
// Red for background color: HTML Hex Color Code #FF0000, Ansi 8-bit Color Index 196
RedBackground
// Orange for background color: HTML Hex Color Code #FF8700, Ansi 8-bit Color Index 208
OrangeBackground
// Yellow for background color: HTML Hex Color Code #FFFF00, Ansi 8-bit Color Index 226
YellowBackground
// Chartreuse for background color: HTML Hex Color Code #87FF00, Ansi 8-bit Color Index 118
ChartreuseBackground
// Green for background color: HTML Hex Color Code #00FF00, Ansi 8-bit Color Index 46
GreenBackground
// SpringGreen for background color: HTML Hex Color Code #00FF87, Ansi 8-bit Color Index 48
SpringGreenBackground
// Cyan for background color: HTML Hex Color Code #00FFFF, Ansi 8-bit Color Index 51
CyanBackground
// Azure for background color: HTML Hex Color Code #0087FF, Ansi 8-bit Color Index 33
AzureBackground
// Blue for background color: HTML Hex Color Code #0000FF, Ansi 8-bit Color Index 21
BlueBackground
// Violet for background color: HTML Hex Color Code #8700FF, Ansi 8-bit Color Index 93
VioletBackground
// Magenta for background color: HTML Hex Color Code #FF00FF, Ansi 8-bit Color Index 201
MagentaBackground
// Rose for background color: HTML Hex Color Code #FF0087, Ansi 8-bit Color Index 198
RoseBackground
// White for background color: HTML Hex Color Code #FFFFFF, Ansi 8-bit Color Index 231
WhiteBackground
// Silver for background color: HTML Hex Color Code #BCBCBC, Ansi 8-bit Color Index 250
SilverBackground
// Grey for background color: HTML Hex Color Code #808080, Ansi 8-bit Color Index 244
GreyBackground
// Black for background color: HTML Hex Color Code #000000, Ansi 8-bit Color Index 16
BlackBackground
)
var backgroundColorNames = []string{
// Default background color
"Default",
/*
* system colors for background colors
*/
"SystemBlack",
"SystemRed",
"SystemGreen",
"SystemYellow",
"SystemBlue",
"SystemMagenta",
"SystemCyan",
"SystemWhite",
"SystemBrightBlack",
"SystemBrightRed",
"SystemBrightGreen",
"SystemBrightYellow",
"SystemBrightBlue",
"SystemBrightMagenta",
"SystemBrightCyan",
"SystemBrightWhite",
/*
* 8-bit colors for background colors
*/
"Red",
"Orange",
"Yellow",
"Chartreuse",
"Green",
"SpringGreen",
"Cyan",
"Azure",
"Blue",
"Violet",
"Magenta",
"Rose",
"White",
"Silver",
"Grey",
"Black",
}
var backgroundColorParameters = [...]string{
// Default background color
DefaultBackground: "49",
/*
* system colors for background colors
*/
SystemBlackBackground: "40",
SystemRedBackground: "41",
SystemGreenBackground: "42",
SystemYellowBackground: "43",
SystemBlueBackground: "44",
SystemMagentaBackground: "45",
SystemCyanBackground: "46",
SystemWhiteBackground: "47",
SystemBrightBlackBackground: "100",
SystemBrightRedBackground: "101",
SystemBrightGreenBackground: "102",
SystemBrightYellowBackground: "103",
SystemBrightBlueBackground: "104",
SystemBrightMagentaBackground: "105",
SystemBrightCyanBackground: "106",
SystemBrightWhiteBackground: "107",
/*
* 8-bit colors for background colors
*/
RedBackground: "48;5;196",
OrangeBackground: "48;5;208",
YellowBackground: "48;5;226",
ChartreuseBackground: "48;5;118",
GreenBackground: "48;5;46",
SpringGreenBackground: "48;5;48",
CyanBackground: "48;5;51",
AzureBackground: "48;5;33",
BlueBackground: "48;5;21",
VioletBackground: "48;5;93",
MagentaBackground: "48;5;201",
RoseBackground: "48;5;198",
WhiteBackground: "48;5;231",
SilverBackground: "48;5;250",
GreyBackground: "48;5;244",
BlackBackground: "48;5;16",
}