1
2
3
4
5
6 namespace System
7 {
8 public static class Color
9 {
10 public enum Constant : sbyte
11 {
12 black, darkRed, darkGreen, darkYellow, darkBlue, darkGray, darkCyan, gray, red, green, yellow, blue, magenta, cyan, white
13 }
14 static nothrow Color() :
15 reset("\033[0m")
16 {
17 }
18 public static string reset;
19 }
20
21 public static class TextColor
22 {
23 static nothrow TextColor() :
24 black("\033[30m"),
25 darkRed("\033[31m"),
26 darkGreen("\033[32m"),
27 darkYellow("\033[33m"),
28 darkBlue("\033[34m"),
29 darkMagenta("\033[35m"),
30 darkCyan("\033[36m"),
31 gray("\033[37m"),
32 red("\033[91m"),
33 green("\033[92m"),
34 yellow("\033[93m"),
35 blue("\033[94m"),
36 magenta("\033[95m"),
37 cyan("\033[96m"),
38 white("\033[97m")
39 {
40 }
41 public static string black;
42 public static string darkRed;
43 public static string darkGreen;
44 public static string darkYellow;
45 public static string darkBlue;
46 public static string darkMagenta;
47 public static string darkCyan;
48 public static string gray;
49 public static string red;
50 public static string green;
51 public static string yellow;
52 public static string blue;
53 public static string magenta;
54 public static string cyan;
55 public static string white;
56 }
57
58 public static class BackColor
59 {
60 static nothrow BackColor() :
61 black("\033[40m"),
62 darkRed("\033[41m"),
63 darkGreen("\033[42m"),
64 darkYellow("\033[43m"),
65 darkBlue("\033[44m"),
66 darkMagenta("\033[45m"),
67 darkCyan("\033[46m"),
68 gray("\033[47m"),
69 red("\033[101m"),
70 green("\033[102m"),
71 yellow("\033[103m"),
72 blue("\033[104m"),
73 magenta("\033[105m"),
74 cyan("\033[106m"),
75 white("\033[107m")
76 {
77 }
78 public static string black;
79 public static string darkRed;
80 public static string darkGreen;
81 public static string darkYellow;
82 public static string darkBlue;
83 public static string darkMagenta;
84 public static string darkCyan;
85 public static string gray;
86 public static string red;
87 public static string green;
88 public static string yellow;
89 public static string blue;
90 public static string magenta;
91 public static string cyan;
92 public static string white;
93 }
94 }