colors.h

来自「测试EPP_CAN板的Linux操作系统驱动的小程序,」· C头文件 代码 · 共 35 行

H
35
字号
/*	 *	color term 				--by zychen */#ifndef _COLORS_H_#define _COLORS_H_#define BLACK	"0"#define RED	"1"#define GREEN	"2"#define YELLOW	"3"#define BLUE	"4"#define PINK	"5"#define CYAN	"6"#define WHITE	"7"#define FORE	"3"#define BACK	"4"#define BOLD	"1"#define FRCOLOR(str,fore_color) "\033[" FORE fore_color "m" str "\033[0m"#define BKCOLOR(str,back_color) "\033[" BACK back_color "m" str "\033[0m"#define COLOR(str,fore_color,back_color) "\033[" FORE fore_color ";" BACK back_color "m" str "\033[0m"#define FRCOLORB(str,fore_color) "\033[" FORE fore_color ";" BOLD "m" str "\033[0m"#define BKCOLORB(str,back_color) "\033[" BACK back_color ";" BOLD "m" str "\033[0m"#define COLORB(str,fore_color,back_color) "\033[" FORE fore_color ";" BACK back_color ";" BOLD "m" str "\033[0m"#define DEFBOLD(str) "\033[1m" str "\033[0m"#define START_COLOR	"\033["#define STOP_COLOR	"m"#define DEFAULT_COLOR	"\033[0m"#endif /* _COLORS_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?