1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef _DEBUG_TTY_COLOR_H_
- #define _DEBUG_TTY_COLOR_H_
- //// Foreground Colours ////
- #define CLR_FG_BLACK "\033[0;30m"
- #define CLR_FG_BLUE "\033[0;34m"
- #define CLR_FG_GREEN "\033[0;32m"
- #define CLR_FG_CYAN "\033[0;36m"
- #define CLR_FG_RED "\033[0;31m"
- #define CLR_FG_PURPLE "\033[0;35m"
- #define CLR_FG_YELLOW "\033[0;33m"
- #define CLR_FG_LIGHT_GREY "\033[0;37m"
- #define CLR_FG_DARK_GREY "\033[1;30m"
- #define CLR_FG_LIGHT_BLUE "\033[1;34m"
- #define CLR_FG_LIGHT_GREEN "\033[1;32m"
- #define CLR_FG_LIGHT_CYAN "\033[1;36m"
- #define CLR_FG_LIGHT_RED "\033[1;31m"
- #define CLR_FG_LIGHT_PURPLE "\033[1;35m"
- #define CLR_FG_LIGHT_YELLOW "\033[1;33m"
- #define CLR_FG_WHITE "\033[1;37m"
- //// Background Colours ////
- #define CLR_BG_BLACK "\033[0;40m"
- #define CLR_BG_BLUE "\033[0;44m"
- #define CLR_BG_GREEN "\033[0;42m"
- #define CLR_BG_CYAN "\033[0;46m"
- #define CLR_BG_RED "\033[0;41m"
- #define CLR_BG_PURPLE "\033[0;45m"
- #define CLR_BG_YELLOW "\033[0;43m"
- #define CLR_BG_LIGHT_GREY "\033[0;47m"
- #define CLR_BG_DARK_GREY "\033[1;40m"
- #define CLR_BG_LIGHT_BLUE "\033[1;44m"
- #define CLR_BG_LIGHT_GREEN "\033[1;42m"
- #define CLR_BG_LIGHT_CYAN "\033[1;46m"
- #define CLR_BG_LIGHT_RED "\033[1;41m"
- #define CLR_BG_LIGHT_PURPLE "\033[1;45m"
- #define CLR_BG_LIGHT_YELLOW "\033[1;43m"
- #define CLR_BG_WHITE "\033[1;47m"
- //// Others ////
- #define CLR_DEFAULT "\033[0m"
- #define CLR_UNDERLINE "\033[4m"
- #define CLR_BLINK "\033[5m"
- #define CLR_INVERSE "\033[7m"
- #define CLR_CONCEALED "\033[8m"
- #define TTY_CLR_RED(mstr, fmt, args...) fprintf(stderr, CLR_BG_LIGHT_RED mstr " %s:%d "CLR_DEFAULT fmt , __FUNCTION__, __LINE__, ## args)
- #define TTY_DBG(mstr, fmt, args...) fprintf(stderr, mstr " %s:%d " fmt, __FUNCTION__, __LINE__, ## args)
- #define TTY_DBG_TMP(mstr, fmt, args...) fprintf(stderr, CLR_BG_RED mstr " %s:%d " CLR_DEFAULT fmt, __FUNCTION__, __LINE__, ## args)
- #endif
|