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
//! See `const COLORS` for a list of all the colors.
//! Other than that, his module contains internals.
/// Generates the struct definition for `Colors`.
// #[non_exhaustive]
make_defs!;
/// The struct containing the integers for the colors.
/// Should not be accessed directly, as will be used by
/// the `color!` and `close_color!` macros.
/// # Values
///
/// ## Formatting
///
/// - `reset`: Resets the formatting of the terminal to default
/// - `bold`: Formats text to bold.
/// - `dim`: Formats text to be dim.
/// - `italic`: Formats text to be italic.
/// - `underline`: Formats text to be underlined.
/// - `inverse`: Swaps foreground and background colors of the
/// terminal.
/// - `hidden`: Is supposed to hide the text,
/// however does not on some platforms, and behaviour varies.
/// - `strikethrough`: Is supposed to format text with a strikethrough,
/// however does not in some platforms.
///
/// ## Foreground Colors
///
/// - `black`: Makes text black.
/// - `red`: Makes text red.
/// - `green`: Makes text green.
/// - `yellow`: Makes text yellow.
/// - `blue`: Makes text blue.
/// - `magenta`: Makes text magenta.
/// - `cyan`: Makes text cyan.
/// - `white`: Makes text white.
/// - `gray`: Makes text gray. Same light black.
/// - `grey`: Makes text grey. Same light black.
/// - `lt_black`: Makes text light black.
/// - `lt_red`: Makes text light red.
/// - `lt_green`: Makes text light green.
/// - `lt_yellow`: Makes text light yellow.
/// - `lt_blue`: Makes text light blue.
/// - `lt_magenta`: Makes text light magenta.
/// - `lt_cyan`: Makes text light cyan.
/// - `lt_white`: Makes text light white.
///
/// ## Background Colors
/// - `bg_black`: makes the background black.
/// - `bg_red`: makes the background red.
/// - `bg_green`: makes the background green.
/// - `bg_yellow`: makes the background yellow.
/// - `bg_blue`: makes the background blue.
/// - `bg_magenta`: makes the background magenta.
/// - `bg_cyan`: makes the background cyan.
/// - `bg_white`: makes the background white.
/// - `bg_lt_black`: makes the background light black.
/// - `bg_lt_red`: makes the background light red.
/// - `bg_lt_green`: makes the background light green.
/// - `bg_lt_yellow`: makes the background light yellow.
/// - `bg_lt_blue`: makes the background light blue.
/// - `bg_lt_magenta`: makes the background light magenta.
/// - `bg_lt_cyan`: makes the background light cyan.
/// - `bg_lt_white`: makes the background light white.
pub const COLORS: Colors = Colors ;