clibs
Tiny but handy utility libraries for C
Main Page
Related Pages
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
i
m
n
p
r
s
t
u
Functions
Typedefs
+
Macros
a
c
d
e
f
i
m
n
p
r
s
t
u
•
All
Files
Functions
Typedefs
Macros
Pages
term_color.h
Go to the documentation of this file.
1
8
#ifndef CLIBS_TERM_COLOR
9
#define CLIBS_TERM_COLOR
10
11
#if _WIN32
12
#error "term_color.h is not supported"
13
#endif
14
18
#ifndef _TERM_COLOR_DEFINED
19
typedef
const
char
*
term_color_t
;
20
#define _TERM_COLOR_DEFINED
21
#endif
22
23
27
#define TERM_COLOR_RESET "\e[0m"
28
29
33
#define TERM_COLOR_BLACK "\e[0;30m"
34
38
#define TERM_COLOR_RED "\e[0;31m"
39
43
#define TERM_COLOR_GREEN "\e[0;32m"
44
48
#define TERM_COLOR_YELLOW "\e[0;33m"
49
53
#define TERM_COLOR_BLUE "\e[0;34m"
54
58
#define TERM_COLOR_PURPLE "\e[0;35m"
59
63
#define TERM_COLOR_CYAN "\e[0;36m"
64
68
#define TERM_COLOR_WHITE "\e[0;37m"
69
70
74
#define TERM_BRIGHT_COLOR_BLACK "\e[0;90m"
75
79
#define TERM_BRIGHT_COLOR_RED "\e[0;91m"
80
84
#define TERM_BRIGHT_COLOR_GREEN "\e[0;92m"
85
89
#define TERM_BRIGHT_COLOR_YELLOW "\e[0;93m"
90
94
#define TERM_BRIGHT_COLOR_BLUE "\e[0;94m"
95
99
#define TERM_BRIGHT_COLOR_PURPLE "\e[0;95m"
100
104
#define TERM_BRIGHT_COLOR_CYAN "\e[0;96m"
105
109
#define TERM_BRIGHT_COLOR_WHITE "\e[0;97m"
110
111
115
#define TERM_BOLD_COLOR_BLACK "\e[1;30m"
116
120
#define TERM_BOLD_COLOR_RED "\e[1;31m"
121
125
#define TERM_BOLD_COLOR_GREEN "\e[1;32m"
126
130
#define TERM_BOLD_COLOR_YELLOW "\e[1;33m"
131
135
#define TERM_BOLD_COLOR_BLUE "\e[1;34m"
136
140
#define TERM_BOLD_COLOR_PURPLE "\e[1;35m"
141
145
#define TERM_BOLD_COLOR_CYAN "\e[1;36m"
146
150
#define TERM_BOLD_COLOR_WHITE "\e[1;37m"
151
152
156
#define TERM_BOLD_BRIGHT_COLOR_BLACK "\e[1;90m"
157
161
#define TERM_BOLD_BRIGHT_COLOR_RED "\e[1;91m"
162
166
#define TERM_BOLD_BRIGHT_COLOR_GREEN "\e[1;92m"
167
171
#define TERM_BOLD_BRIGHT_COLOR_YELLOW "\e[1;93m"
172
176
#define TERM_BOLD_BRIGHT_COLOR_BLUE "\e[1;94m"
177
181
#define TERM_BOLD_BRIGHT_COLOR_PURPLE "\e[1;95m"
182
186
#define TERM_BOLD_BRIGHT_COLOR_CYAN "\e[1;96m"
187
191
#define TERM_BOLD_BRIGHT_COLOR_WHITE "\e[1;97m"
192
193
197
#define TERM_UNDERLINE_COLOR_BLACK "\e[4;30m"
198
202
#define TERM_UNDERLINE_COLOR_RED "\e[4;31m"
203
207
#define TERM_UNDERLINE_COLOR_GREEN "\e[4;32m"
208
212
#define TERM_UNDERLINE_COLOR_YELLOW "\e[4;33m"
213
217
#define TERM_UNDERLINE_COLOR_BLUE "\e[4;34m"
218
222
#define TERM_UNDERLINE_COLOR_PURPLE "\e[4;35m"
223
227
#define TERM_UNDERLINE_COLOR_CYAN "\e[4;36m"
228
232
#define TERM_UNDERLINE_COLOR_WHITE "\e[4;37m"
233
234
238
#define TERM_BACKGROUND_COLOR_BLACK "\e[40m"
239
243
#define TERM_BACKGROUND_COLOR_RED "\e[41m"
244
248
#define TERM_BACKGROUND_COLOR_GREEN "\e[42m"
249
253
#define TERM_BACKGROUND_COLOR_YELLOW "\e[43m"
254
258
#define TERM_BACKGROUND_COLOR_BLUE "\e[44m"
259
263
#define TERM_BACKGROUND_COLOR_PURPLE "\e[45m"
264
268
#define TERM_BACKGROUND_COLOR_CYAN "\e[46m"
269
273
#define TERM_BACKGROUND_COLOR_WHITE "\e[47m"
274
275
279
#define TERM_BRIGHT_BACKGROUND_COLOR_BLACK "\e[100m"
280
284
#define TERM_BRIGHT_BACKGROUND_COLOR_RED "\e[101m"
285
289
#define TERM_BRIGHT_BACKGROUND_COLOR_GREEN "\e[102m"
290
294
#define TERM_BRIGHT_BACKGROUND_COLOR_YELLOW "\e[103m"
295
299
#define TERM_BRIGHT_BACKGROUND_COLOR_BLUE "\e[104m"
300
304
#define TERM_BRIGHT_BACKGROUND_COLOR_PURPLE "\e[105m"
305
309
#define TERM_BRIGHT_BACKGROUND_COLOR_CYAN "\e[106m"
310
314
#define TERM_BRIGHT_BACKGROUND_COLOR_WHITE "\e[107m"
315
316
#endif
/* CLIBS_TERM_COLOR */
term_color_t
const char * term_color_t
Type of term color.
Definition:
term_color.h:19
Generated by
1.8.13