1use crate::seq;
12
13pub use self::colours as colors;
15
16pub const RESET: &str = seq!(0);
18
19pub mod effects {
21 use super::seq;
22
23 pub const NORMAL: &str = super::RESET;
25 pub const BOLD: &str = seq!(1);
27 pub const DIM: &str = seq!(2);
29 pub const ITALIC: &str = seq!(3);
31 pub const UNDERLINE: &str = seq!(4);
33 pub const BLINK: &str = seq!(5);
35 pub const RAPID_BLINK: &str = seq!(6);
37 pub const INVERSE: &str = seq!(7);
39 pub const INVISIBLE: &str = seq!(8);
41 pub const STRIKE: &str = seq!(9);
43
44 pub const FRAKTUR: &str = seq!(20);
48 pub const DBL_UNDERLINE: &str = seq!(21);
50
51 pub const STEADY: &str = remove::BLINK;
53 pub const POSITIVE: &str = remove::INVISIBLE;
55 pub const VISIBLE: &str = remove::INVISIBLE;
57
58 pub mod remove {
60 use super::seq;
61
62 pub const BOLD_DIM: &str = seq!(22);
64 pub const ITALIC: &str = seq!(23);
66 pub const UNDERLINE: &str = seq!(24);
68 pub const BLINK: &str = seq!(25);
70 pub const INVERSE: &str = seq!(27);
73 pub const INVISIBLE: &str = seq!(28);
75 pub const STRIKE: &str = seq!(29);
77
78 pub const INTENSITY: &str = BOLD_DIM;
80 }
81}
82
83pub mod fonts {
85 use super::seq;
86
87 pub const DEFAULT: &str = seq!(10);
89 pub const ALT1: &str = seq!(11);
91 pub const ALT2: &str = seq!(12);
93 pub const ALT3: &str = seq!(13);
95 pub const ALT4: &str = seq!(14);
97 pub const ALT5: &str = seq!(15);
99 pub const ALT6: &str = seq!(16);
101 pub const ALT7: &str = seq!(17);
103 pub const ALT8: &str = seq!(18);
105 pub const ALT9: &str = seq!(19);
107}
108
109pub mod colours {
111 use super::seq;
112
113 pub const RESET: &str = seq!(39, 49);
115 pub const RESET_FG: &str = fg::RESET;
117 pub const RESET_BG: &str = bg::RESET;
119
120 pub mod fg {
122 use super::seq;
123
124 pub const BLACK: &str = seq!(30);
125 pub const RED: &str = seq!(31);
126 pub const GREEN: &str = seq!(32);
127 pub const YELLOW: &str = seq!(33);
128 pub const BLUE: &str = seq!(34);
129 pub const MAGENTA: &str = seq!(35);
130 pub const CYAN: &str = seq!(36);
131 pub const WHITE: &str = seq!(37);
132
133 pub const RESET: &str = seq!(39);
135
136 pub mod bright {
138 use super::seq;
139
140 pub const BLACK: &str = seq!(90);
141 pub const RED: &str = seq!(91);
142 pub const GREEN: &str = seq!(92);
143 pub const YELLOW: &str = seq!(93);
144 pub const BLUE: &str = seq!(94);
145 pub const MAGENTA: &str = seq!(95);
146 pub const CYAN: &str = seq!(96);
147 pub const WHITE: &str = seq!(97);
148 }
149 }
150
151 pub mod bg {
153 use super::seq;
154
155 pub const BLACK: &str = seq!(40);
156 pub const RED: &str = seq!(41);
157 pub const GREEN: &str = seq!(42);
158 pub const YELLOW: &str = seq!(43);
159 pub const BLUE: &str = seq!(44);
160 pub const MAGENTA: &str = seq!(45);
161 pub const CYAN: &str = seq!(46);
162 pub const WHITE: &str = seq!(47);
163
164 pub const RESET: &str = seq!(49);
166
167 pub mod bright {
169 use super::seq;
170
171 pub const BLACK: &str = seq!(100);
172 pub const RED: &str = seq!(101);
173 pub const GREEN: &str = seq!(102);
174 pub const YELLOW: &str = seq!(103);
175 pub const BLUE: &str = seq!(104);
176 pub const MAGENTA: &str = seq!(105);
177 pub const CYAN: &str = seq!(106);
178 pub const WHITE: &str = seq!(107);
179 }
180 }
181}
182
183pub mod misc {
185 use super::seq;
186
187 pub const FRAMED: &str = seq!(51);
189 pub const ENCIRCLED: &str = seq!(52);
191 pub const OVERLINED: &str = seq!(53);
193
194 pub mod remove {
196 use super::seq;
197
198 pub const FRAMED_ENCIRCLED: &str = seq!(54);
200 pub const OVERLINED: &str = seq!(55);
202 }
203
204 pub mod ideogram {
206 use super::seq;
207
208 pub const UNDERLINE: &str = seq!(60);
210 pub const DBL_UNDERLINE: &str = seq!(61);
212 pub const OVERLINE: &str = seq!(62);
214 pub const DBL_OVERLINE: &str = seq!(63);
216 pub const STRESS_MARKING: &str = seq!(64);
218 pub const RESET: &str = seq!(65);
220 }
221}
222
223pub mod combinations {
225 use super::seq;
226
227 pub mod fg_bold {
229 use super::seq;
230
231 pub const BLACK: &str = seq!(30,1);
232 pub const RED: &str = seq!(31,1);
233 pub const GREEN: &str = seq!(32,1);
234 pub const YELLOW: &str = seq!(33,1);
235 pub const BLUE: &str = seq!(34,1);
236 pub const MAGENTA: &str = seq!(35,1);
237 pub const CYAN: &str = seq!(36,1);
238 pub const WHITE: &str = seq!(37,1);
239 }
240}