00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _ANSI_H
00014 #define _ANSI_H
00015
00016 #define BEEP_CHAR '\07'
00017 #define ESC_CHAR '\033'
00018 #define ANSI_ATTR_CMD 'm'
00019
00020 #define ANSI_NORMAL "\033[0m"
00021
00022 #define ANSI_HILITE "\033[1m"
00023 #define ANSI_UNDER "\033[4m"
00024 #define ANSI_BLINK "\033[5m"
00025 #define ANSI_INVERSE "\033[7m"
00026
00027
00028
00029 #define ANSI_FOREGROUND "\033[3"
00030 #define ANSI_BLACK "\033[30m"
00031 #define ANSI_RED "\033[31m"
00032 #define ANSI_GREEN "\033[32m"
00033 #define ANSI_YELLOW "\033[33m"
00034 #define ANSI_BLUE "\033[34m"
00035 #define ANSI_MAGENTA "\033[35m"
00036 #define ANSI_CYAN "\033[36m"
00037 #define ANSI_WHITE "\033[37m"
00038
00039
00040
00041 #define ANSI_BACKGROUND "\033[4"
00042 #define ANSI_BBLACK "\033[40m"
00043 #define ANSI_BRED "\033[41m"
00044 #define ANSI_BGREEN "\033[42m"
00045 #define ANSI_BYELLOW "\033[43m"
00046 #define ANSI_BBLUE "\033[44m"
00047 #define ANSI_BMAGENTA "\033[45m"
00048 #define ANSI_BCYAN "\033[46m"
00049 #define ANSI_BWHITE "\033[47m"
00050
00051 #endif // !_ANSI_H