You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
571 B
29 lines
571 B
4 years ago
|
// https://stackoverflow.com/a/30304782
|
||
|
|
||
|
#ifndef _COLORS_
|
||
|
#define _COLORS_
|
||
|
|
||
|
/* FOREGROUND */
|
||
|
#define RST "\x1B[0m"
|
||
|
#define KRED "\x1B[31m"
|
||
|
#define KGRN "\x1B[32m"
|
||
|
#define KYEL "\x1B[33m"
|
||
|
#define KBLU "\x1B[34m"
|
||
|
#define KMAG "\x1B[35m"
|
||
|
#define KCYN "\x1B[36m"
|
||
|
#define KWHT "\x1B[37m"
|
||
|
|
||
|
#define FRED(x) KRED x RST
|
||
|
#define FGRN(x) KGRN x RST
|
||
|
#define FYEL(x) KYEL x RST
|
||
|
#define FBLU(x) KBLU x RST
|
||
|
#define FMAG(x) KMAG x RST
|
||
|
#define FCYN(x) KCYN x RST
|
||
|
#define FWHT(x) KWHT x RST
|
||
|
|
||
|
#define BOLD(x) "\x1B[1m" x RST
|
||
|
#define UNDL(x) "\x1B[4m" x RST
|
||
|
|
||
|
#endif /* _COLORS_ */
|
||
|
|