@@ -25,10 +25,172 @@ public sealed class PSStyle
25
25
/// </summary>
26
26
public sealed class BackgroundColor
27
27
{
28
+ /// <summary>
29
+ /// Gets the color black.
30
+ /// </summary>
31
+ public static string Black { get ; } = "\x1b [40m" ;
32
+
33
+ /// <summary>
34
+ /// Gets the color red.
35
+ /// </summary>
36
+ public static string Red { get ; } = "\x1b [41m" ;
37
+
38
+ /// <summary>
39
+ /// Gets the color green.
40
+ /// </summary>
41
+ public static string Green { get ; } = "\x1b [42m" ;
42
+
43
+ /// <summary>
44
+ /// Gets the color yellow.
45
+ /// </summary>
46
+ public static string Yellow { get ; } = "\x1b [43m" ;
47
+
28
48
/// <summary>
29
49
/// Gets the color blue.
30
50
/// </summary>
31
51
public static string Blue { get ; } = "\x1b [44m" ;
52
+
53
+ /// <summary>
54
+ /// Gets the color magenta.
55
+ /// </summary>
56
+ public static string Magenta { get ; } = "\x1b [45m" ;
57
+
58
+ /// <summary>
59
+ /// Gets the color cyan.
60
+ /// </summary>
61
+ public static string Cyan { get ; } = "\x1b [46m" ;
62
+
63
+ /// <summary>
64
+ /// Gets the color white.
65
+ /// </summary>
66
+ public static string White { get ; } = "\x1b [47m" ;
67
+
68
+ /// <summary>
69
+ /// Gets the color bright black.
70
+ /// </summary>
71
+ public static string BrightBlack { get ; } = "\x1b [100m" ;
72
+
73
+ /// <summary>
74
+ /// Gets the color bright red.
75
+ /// </summary>
76
+ public static string BrightRed { get ; } = "\x1b [101m" ;
77
+
78
+ /// <summary>
79
+ /// Gets the color bright green.
80
+ /// </summary>
81
+ public static string BrightGreen { get ; } = "\x1b [102m" ;
82
+
83
+ /// <summary>
84
+ /// Gets the color bright yellow.
85
+ /// </summary>
86
+ public static string BrightYellow { get ; } = "\x1b [103m" ;
87
+
88
+ /// <summary>
89
+ /// Gets the color bright blue.
90
+ /// </summary>
91
+ public static string BrightBlue { get ; } = "\x1b [104m" ;
92
+
93
+ /// <summary>
94
+ /// Gets the color bright magenta.
95
+ /// </summary>
96
+ public static string BrightMagenta { get ; } = "\x1b [105m" ;
97
+
98
+ /// <summary>
99
+ /// Gets the color bright cyan.
100
+ /// </summary>
101
+ public static string BrightCyan { get ; } = "\x1b [106m" ;
102
+
103
+ /// <summary>
104
+ /// Gets the color bright white.
105
+ /// </summary>
106
+ public static string BrightWhite { get ; } = "\x1b [107m" ;
107
+ }
108
+
109
+ /// <summary>
110
+ /// Contains foreground colors.
111
+ /// </summary>
112
+ public sealed class ForegroundColor
113
+ {
114
+
115
+ /// <summary>
116
+ /// Gets the color black.
117
+ /// </summary>
118
+ public static string Black { get ; } = "\x1b [30m" ;
119
+
120
+ /// <summary>
121
+ /// Gets the color red.
122
+ /// </summary>
123
+ public static string Red { get ; } = "\x1b [31m" ;
124
+
125
+ /// <summary>
126
+ /// Gets the color green.
127
+ /// </summary>
128
+ public static string Green { get ; } = "\x1b [32m" ;
129
+
130
+ /// <summary>
131
+ /// Gets the color yellow.
132
+ /// </summary>
133
+ public static string Yellow { get ; } = "\x1b [33m" ;
134
+
135
+ /// <summary>
136
+ /// Gets the color blue.
137
+ /// </summary>
138
+ public static string Blue { get ; } = "\x1b [34m" ;
139
+
140
+ /// <summary>
141
+ /// Gets the color magenta.
142
+ /// </summary>
143
+ public static string Magenta { get ; } = "\x1b [35m" ;
144
+
145
+ /// <summary>
146
+ /// Gets the color cyan.
147
+ /// </summary>
148
+ public static string Cyan { get ; } = "\x1b [36m" ;
149
+
150
+ /// <summary>
151
+ /// Gets the color white.
152
+ /// </summary>
153
+ public static string White { get ; } = "\x1b [37m" ;
154
+
155
+ /// <summary>
156
+ /// Gets the color bright black.
157
+ /// </summary>
158
+ public static string BrightBlack { get ; } = "\x1b [90m" ;
159
+
160
+ /// <summary>
161
+ /// Gets the color bright red.
162
+ /// </summary>
163
+ public static string BrightRed { get ; } = "\x1b [91m" ;
164
+
165
+ /// <summary>
166
+ /// Gets the color bright green.
167
+ /// </summary>
168
+ public static string BrightGreen { get ; } = "\x1b [92m" ;
169
+
170
+ /// <summary>
171
+ /// Gets the color bright yellow.
172
+ /// </summary>
173
+ public static string BrightYellow { get ; } = "\x1b [93m" ;
174
+
175
+ /// <summary>
176
+ /// Gets the color bright blue.
177
+ /// </summary>
178
+ public static string BrightBlue { get ; } = "\x1b [94m" ;
179
+
180
+ /// <summary>
181
+ /// Gets the color bright magenta.
182
+ /// </summary>
183
+ public static string BrightMagenta { get ; } = "\x1b [95m" ;
184
+
185
+ /// <summary>
186
+ /// Gets the color bright cyan.
187
+ /// </summary>
188
+ public static string BrightCyan { get ; } = "\x1b [96m" ;
189
+
190
+ /// <summary>
191
+ /// Gets the color bright white.
192
+ /// </summary>
193
+ public static string BrightWhite { get ; } = "\x1b [97m" ;
32
194
}
33
195
34
196
public static string Reset { get ; } = "\x1b [0m" ;
0 commit comments