linux下串口打印时字体颜色
const char COLOR_RESET[] = "\033[0m";
const char COLOR_BLACK[] = "\033[30m"; /* Black */
const char COLOR_RED[] = "\033[31m"; /* Red */
const char COLOR_GREEN[] = "\033[32m"; /* Green */
const char COLOR_YELLOW[] = "\033[33m"; /* Yellow */
const char COLOR_BLUE[] = "\033[34m"; /* Blue */
const char COLOR_MAGENTA[] = "\033[35m"; /* Magenta */
const char COLOR_CYAN[] = "\033[36m"; /* Cyan */
const char COLOR_WHITE[] = "\033[37m"; /* White */
const char COLOR_BOLDBLACK[] = "\033[1m\033[30m"; /* Bold Black */
const char COLOR_BOLDRED[] = "\033[1m\033[31m"; /* Bold Red */
const char COLOR_BOLDGREEN[] = "\033[1m\033[32m"; /* Bold Green */
const char COLOR_BOLDYELLOW[] = "\033[1m\033[33m"; /* Bold Yellow */
const char COLOR_BOLDBLUE[] = "\033[1m\033[34m"; /* Bold Blue */
const char COLOR_BOLDMAGENTA[] = "\033[1m\033[35m"; /* Bold Magenta */
const char COLOR_BOLDCYAN[] = "\033[1m\033[36m"; /* Bold Cyan */
const char COLOR_BOLDWHITE[] = "\033[1m\033[37m"; /* Bold White */