2019-08-08 22:57:33 +08:00
|
|
|
#ifndef __ANSI_H
|
|
|
|
#define __ANSI_H
|
|
|
|
|
2020-04-22 08:22:55 +08:00
|
|
|
#define AEND "\x1b[0m"
|
2019-09-05 21:46:40 +08:00
|
|
|
|
|
|
|
#define _BLUE_(s) "\x1b[34m" s AEND
|
|
|
|
#define _RED_(s) "\x1b[31m" s AEND
|
2020-04-22 08:22:55 +08:00
|
|
|
#define _BOLD_RED_(s) "\x1b[1;31m" s AEND
|
2019-09-05 21:46:40 +08:00
|
|
|
#define _GREEN_(s) "\x1b[32m" s AEND
|
2020-04-22 08:22:55 +08:00
|
|
|
#define _BOLD_GREEN_(s) "\x1b[1;32m" s AEND
|
2019-09-05 21:46:40 +08:00
|
|
|
#define _YELLOW_(s) "\x1b[33m" s AEND
|
|
|
|
#define _MAGENTA_(s) "\x1b[35m" s AEND
|
|
|
|
#define _CYAN_(s) "\x1b[36m" s AEND
|
|
|
|
#define _WHITE_(s) "\x1b[37m" s AEND
|
2019-08-08 22:57:33 +08:00
|
|
|
|
|
|
|
#endif
|