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
/// Default color (no formatting).
pub const DEFAULT: &str = "";
/// Semicolon separator used in CSI parameter lists.
pub const SEMICOLON: char = ';';
/// Control Sequence Introducer (CSI), starts an ANSI escape sequence.
pub const CSI: &str = "\x1b[";
/// Select Graphic Rendition (SGR) final byte.
pub const SGR: char = 'm';
/// Reset all graphic rendition attributes.
pub const SGR_RESET: &str = "\x1b[0m";
/// SGR parameter: bold or increased intensity.
pub const SGR_BOLD: &str = "1";
/// Line feed character.
pub const LINE_FEED: char = '\n';
/// ANSI escape code for black text.
pub const BLACK: &str = "30";
/// ANSI escape code for red text.
pub const RED: &str = "31";
/// ANSI escape code for green text.
pub const GREEN: &str = "32";
/// ANSI escape code for yellow text.
pub const YELLOW: &str = "33";
/// ANSI escape code for blue text.
pub const BLUE: &str = "34";
/// ANSI escape code for magenta text.
pub const MAGENTA: &str = "35";
/// ANSI escape code for cyan text.
pub const CYAN: &str = "36";
/// ANSI escape code for white text.
pub const WHITE: &str = "37";
/// ANSI escape code for black background.
pub const BG_BLACK: &str = "40";
/// ANSI escape code for red background.
pub const BG_RED: &str = "41";
/// ANSI escape code for green background.
pub const BG_GREEN: &str = "42";
/// ANSI escape code for yellow background.
pub const BG_YELLOW: &str = "43";
/// ANSI escape code for blue background.
pub const BG_BLUE: &str = "44";
/// ANSI escape code for magenta background.
pub const BG_MAGENTA: &str = "45";
/// ANSI escape code for cyan background.
pub const BG_CYAN: &str = "46";
/// ANSI escape code for white background.
pub const BG_WHITE: &str = "47";