dinglebit_terminal/consts.rs
1//! Constants as defined in [ANSI escape
2//! code](https://en.wikipedia.org/wiki/ANSI_escape_code).
3
4/// SGR value for op reset.
5pub const OP_RESET: u8 = 0;
6
7/// SGR value for op bold.
8pub const OP_BOLD: u8 = 1;
9
10/// SGR value for op faint.
11pub const OP_FAINT: u8 = 2;
12
13/// SGR value for op italic.
14pub const OP_ITALIC: u8 = 3;
15
16/// SGR value for op underline.
17pub const OP_UNDERLINE: u8 = 4;
18
19/// SGR value for op slow blink.
20pub const OP_SLOW_BLINK: u8 = 5;
21
22/// SGR value for op fast blink.
23pub const OP_FAST_BLINK: u8 = 6;
24
25/// SGR value for op reverse.
26pub const OP_REVERSE: u8 = 7;
27
28/// SGR value for op conceal.
29pub const OP_CONCEAL: u8 = 8;
30
31/// SGR value for op strikethrough.
32pub const OP_STRIKETHROUGH: u8 = 9;
33
34/// SRG value for foreground black.
35pub const FG_BLACK: u8 = 30;
36
37/// SRG value for foreground red.
38pub const FG_RED: u8 = 31;
39
40/// SRG value for foreground green.
41pub const FG_GREEN: u8 = 32;
42
43/// SRG value for foreground yellow.
44pub const FG_YELLOW: u8 = 33;
45
46/// SRG value for foreground blue.
47pub const FG_BLUE: u8 = 34;
48
49/// SRG value for foreground magenta.
50pub const FG_MAGENTA: u8 = 35;
51
52/// SRG value for foreground cyan.
53pub const FG_CYAN: u8 = 36;
54
55/// SRG value for foreground white.
56pub const FG_WHITE: u8 = 37;
57
58/// SRG value for foreground gray.
59pub const FG_GRAY: u8 = 90;
60
61/// SRG value for foreground bright red.
62pub const FG_BRIGHT_RED: u8 = 91;
63
64/// SRG value for foreground bright green.
65pub const FG_BRIGHT_GREEN: u8 = 92;
66
67/// SRG value for foreground bright yellow.
68pub const FG_BRIGHT_YELLOW: u8 = 93;
69
70/// SRG value for foreground bright blue.
71pub const FG_BRIGHT_BLUE: u8 = 94;
72
73/// SRG value for foreground bright magenta.
74pub const FG_BRIGHT_MAGENTA: u8 = 95;
75
76/// SRG value for foreground bright cyan.
77pub const FG_BRIGHT_CYAN: u8 = 96;
78
79/// SRG value for foreground bright white.
80pub const FG_BRIGHT_WHITE: u8 = 97;
81
82/// SRG value for background black.
83pub const BG_BLACK: u8 = 40;
84
85/// SRG value for background red.
86pub const BG_RED: u8 = 41;
87
88/// SRG value for background green.
89pub const BG_GREEN: u8 = 42;
90
91/// SRG value for background yellow.
92pub const BG_YELLOW: u8 = 43;
93
94/// SRG value for background blue.
95pub const BG_BLUE: u8 = 44;
96
97/// SRG value for background magenta.
98pub const BG_MAGENTA: u8 = 45;
99
100/// SRG value for background cyan.
101pub const BG_CYAN: u8 = 46;
102
103/// SRG value for background white.
104pub const BG_WHITE: u8 = 47;
105
106/// SRG value for background gray.
107pub const BG_GRAY: u8 = 100;
108
109/// SRG value for background bright red.
110pub const BG_BRIGHT_RED: u8 = 101;
111
112/// SRG value for background bright green.
113pub const BG_BRIGHT_GREEN: u8 = 102;
114
115/// SRG value for background bright yellow.
116pub const BG_BRIGHT_YELLOW: u8 = 103;
117
118/// SRG value for background bright blue.
119pub const BG_BRIGHT_BLUE: u8 = 104;
120
121/// SRG value for background bright_magenta.
122pub const BG_BRIGHT_MAGENTA: u8 = 105;
123
124/// SRG value for background bright_cyan.
125pub const BG_BRIGHT_CYAN: u8 = 106;
126
127/// SRG value for background bright white.
128pub const BG_BRIGHT_WHITE: u8 = 107;