Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
Color | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php declare(strict_types=1); |
2 | |
3 | namespace Aviat\Kilo\Enum; |
4 | |
5 | use Aviat\Kilo\Traits; |
6 | |
7 | /** |
8 | * ANSI Color escape sequences |
9 | * @enum |
10 | */ |
11 | class Color { |
12 | use Traits\ConstList; |
13 | |
14 | // Foreground colors |
15 | public const FG_BLACK = 30; |
16 | public const FG_RED = 31; |
17 | public const FG_GREEN = 32; |
18 | public const FG_YELLOW = 33; |
19 | public const FG_BLUE = 34; |
20 | public const FG_MAGENTA = 35; |
21 | public const FG_CYAN = 36; |
22 | public const FG_WHITE = 37; |
23 | public const FG_BRIGHT_BLACK = 90; |
24 | public const FG_BRIGHT_RED = 91; |
25 | public const FG_BRIGHT_GREEN = 92; |
26 | public const FG_BRIGHT_YELLOW = 93; |
27 | public const FG_BRIGHT_BLUE = 94; |
28 | public const FG_BRIGHT_MAGENTA = 95; |
29 | public const FG_BRIGHT_CYAN = 96; |
30 | public const FG_BRIGHT_WHITE = 97; |
31 | |
32 | // Background colors |
33 | public const BG_BLACK = 40; |
34 | public const BG_RED = 41; |
35 | public const BG_GREEN = 42; |
36 | public const BG_YELLOW = 43; |
37 | public const BG_BLUE = 44; |
38 | public const BG_MAGENTA = 45; |
39 | public const BG_CYAN = 46; |
40 | public const BG_WHITE = 47; |
41 | public const BG_BRIGHT_BLACK = 100; |
42 | public const BG_BRIGHT_RED = 101; |
43 | public const BG_BRIGHT_GREEN = 102; |
44 | public const BG_BRIGHT_YELLOW = 103; |
45 | public const BG_BRIGHT_BLUE = 104; |
46 | public const BG_BRIGHT_MAGENTA = 105; |
47 | public const BG_BRIGHT_CYAN = 106; |
48 | public const BG_BRIGHT_WHITE = 107; |
49 | |
50 | public const INVERT = 7; |
51 | } |