00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef COLOR_MACROS_H
00018 #define COLOR_MACROS_H
00019
00020
00021 #define FT_BOLD "\033[1m"
00022 #define FT_UNDERLINE "\033[4m"
00023
00024
00025 #define BG_BLACK "\033[40m"
00026 #define BG_RED "\033[41m"
00027 #define BG_GREEN "\033[42m"
00028 #define BG_YELLOW "\033[43m"
00029 #define BG_LIGHTBLUE "\033[44m"
00030 #define BG_MAGENTA "\033[45m"
00031 #define BG_BLUE "\033[46m"
00032 #define BG_WHITE "\033[47m"
00033
00034
00035 #define CL_BLACK(s) "\033[30m" << s << "\033[0m"
00036 #define CL_RED(s) "\033[31m" << s << "\033[0m"
00037 #define CL_GREEN(s) "\033[32m" << s << "\033[0m"
00038 #define CL_YELLOW(s) "\033[33m" << s << "\033[0m"
00039 #define CL_LIGHTBLUE(s) "\033[34m" << s << "\033[0m"
00040 #define CL_MAGENTA(s) "\033[35m" << s << "\033[0m"
00041 #define CL_BLUE(s) "\033[36m" << s << "\033[0m"
00042 #define CL_WHITE(s) "\033[37m" << s << "\033[0m"
00043
00044 #define FG_BLACK "\033[30m"
00045 #define FG_RED "\033[31m"
00046 #define FG_GREEN "\033[32m"
00047 #define FG_YELLOW "\033[33m"
00048 #define FG_LIGHTBLUE "\033[34m"
00049 #define FG_MAGENTA "\033[35m"
00050 #define FG_BLUE "\033[36m"
00051 #define FG_WHITE "\033[37m"
00052
00053 #define FG_NORM "\033[0m"
00054
00055 #endif