| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- \hypertarget{ansi__escape_8h_source}{}\doxysection{ansi\+\_\+escape.\+h}
- \label{ansi__escape_8h_source}\index{include/toolbox/ansi\_escape.h@{include/toolbox/ansi\_escape.h}}
- \begin{DoxyCode}{0}
- \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef TOOLBOX\_ANSI\_ESCAPE\_H}}
- \DoxyCodeLine{2 \textcolor{preprocessor}{\#define TOOLBOX\_ANSI\_ESCAPE\_H}}
- \DoxyCodeLine{3 }
- \DoxyCodeLine{4 \textcolor{preprocessor}{\#define ESC\_CHAR "{}\(\backslash\)033"{}}}
- \DoxyCodeLine{5 }
- \DoxyCodeLine{6 \textcolor{preprocessor}{\#define CRS\_HOME ESC\_CHAR"{}[H"{}}}
- \DoxyCodeLine{7 \textcolor{preprocessor}{\#define CRS\_MOV\_Y\_X ESC\_CHAR"{}[\%d;\%dH"{}}}
- \DoxyCodeLine{8 \textcolor{preprocessor}{\#define CRS\_MOV\_UP ESC\_CHAR"{}[\%dA"{}}}
- \DoxyCodeLine{9 \textcolor{preprocessor}{\#define CRS\_MOV\_DOWN ESC\_CHAR"{}[\%dB"{}}}
- \DoxyCodeLine{10 \textcolor{preprocessor}{\#define CRS\_MOV\_RIGHT ESC\_CHAR"{}[\%dC"{}}}
- \DoxyCodeLine{11 \textcolor{preprocessor}{\#define CRS\_MOV\_LEFT ESC\_CHAR"{}[\%dD"{}}}
- \DoxyCodeLine{12 \textcolor{preprocessor}{\#define CRS\_BGN\_NEXT ESC\_CHAR"{}[\%dE"{}}}
- \DoxyCodeLine{13 \textcolor{preprocessor}{\#define CRS\_BGN\_PREV ESC\_CHAR"{}[\%dF"{}}}
- \DoxyCodeLine{14 \textcolor{preprocessor}{\#define CRS\_MOV\_COL ESC\_CHAR"{}[\%dG"{}}}
- \DoxyCodeLine{15 \textcolor{preprocessor}{\#define CRS\_POS ESC\_CHAR"{}[6n"{}}}
- \DoxyCodeLine{16 \textcolor{preprocessor}{\#define CRS\_UP ESC\_CHAR"{}M"{}}}
- \DoxyCodeLine{17 \textcolor{preprocessor}{\#define CRS\_SAV\_DEC ESC\_CHAR"{}7"{}}}
- \DoxyCodeLine{18 \textcolor{preprocessor}{\#define CRS\_RES\_DEC ESC\_CHAR"{}8"{}}}
- \DoxyCodeLine{19 \textcolor{preprocessor}{\#define CRS\_SAV\_SCO ESC\_CHAR"{}[s"{}}}
- \DoxyCodeLine{20 \textcolor{preprocessor}{\#define CRS\_RES\_SCO ESC\_CHAR"{}[u"{}}}
- \DoxyCodeLine{21 }
- \DoxyCodeLine{22 \textcolor{preprocessor}{\#define CRS\_MOV\_1UP ESC\_CHAR"{}[1A"{}}}
- \DoxyCodeLine{23 \textcolor{preprocessor}{\#define CRS\_MOV\_1DOWN ESC\_CHAR"{}[1B"{}}}
- \DoxyCodeLine{24 \textcolor{preprocessor}{\#define CRS\_MOV\_1RIGHT ESC\_CHAR"{}[1C"{}}}
- \DoxyCodeLine{25 \textcolor{preprocessor}{\#define CRS\_MOV\_1LEFT ESC\_CHAR"{}[1D"{}}}
- \DoxyCodeLine{26 }
- \DoxyCodeLine{27 \textcolor{preprocessor}{\#define ERS\_END\_SCR ESC\_CHAR"{}[0J"{}}}
- \DoxyCodeLine{28 \textcolor{preprocessor}{\#define ERS\_BGN\_SCR ESC\_CHAR"{}[1J"{}}}
- \DoxyCodeLine{29 \textcolor{preprocessor}{\#define ERS\_SCR ESC\_CHAR"{}[2J"{}}}
- \DoxyCodeLine{30 \textcolor{preprocessor}{\#define ERS\_SAV\_LINE ESC\_CHAR"{}[3J"{}}}
- \DoxyCodeLine{31 \textcolor{preprocessor}{\#define ERS\_END\_LINE ESC\_CHAR"{}[0K"{}}}
- \DoxyCodeLine{32 \textcolor{preprocessor}{\#define ERS\_BGN\_LINE ESC\_CHAR"{}[1K"{}}}
- \DoxyCodeLine{33 \textcolor{preprocessor}{\#define ERS\_LINE ESC\_CHAR"{}[2K"{}}}
- \DoxyCodeLine{34 }
- \DoxyCodeLine{35 \textcolor{preprocessor}{\#define SET\_BOLD ESC\_CHAR"{}[1m"{}}}
- \DoxyCodeLine{36 \textcolor{preprocessor}{\#define SET\_DIM ESC\_CHAR"{}[2m"{}}}
- \DoxyCodeLine{37 \textcolor{preprocessor}{\#define SET\_ITALIC ESC\_CHAR"{}[3m"{}}}
- \DoxyCodeLine{38 \textcolor{preprocessor}{\#define SET\_UNDER ESC\_CHAR"{}[4m"{}}}
- \DoxyCodeLine{39 \textcolor{preprocessor}{\#define SET\_BLINK ESC\_CHAR"{}[5m"{}}}
- \DoxyCodeLine{40 \textcolor{preprocessor}{\#define SET\_INVERSE ESC\_CHAR"{}[7m"{}}}
- \DoxyCodeLine{41 \textcolor{preprocessor}{\#define SET\_HIDDEN ESC\_CHAR"{}[8m"{}}}
- \DoxyCodeLine{42 \textcolor{preprocessor}{\#define SET\_STRIKE ESC\_CHAR"{}[9m"{}}}
- \DoxyCodeLine{43 }
- \DoxyCodeLine{44 \textcolor{preprocessor}{\#define RST\_ALL ESC\_CHAR"{}[0m"{}}}
- \DoxyCodeLine{45 \textcolor{preprocessor}{\#define RST\_BOLD ESC\_CHAR"{}[22m"{}}}
- \DoxyCodeLine{46 \textcolor{preprocessor}{\#define RST\_DIM ESC\_CHAR"{}[22m"{}}}
- \DoxyCodeLine{47 \textcolor{preprocessor}{\#define RST\_ITALIC ESC\_CHAR"{}[23m"{}}}
- \DoxyCodeLine{48 \textcolor{preprocessor}{\#define RST\_UNDER ESC\_CHAR"{}[24m"{}}}
- \DoxyCodeLine{49 \textcolor{preprocessor}{\#define RST\_BLINK ESC\_CHAR"{}[25m"{}}}
- \DoxyCodeLine{50 \textcolor{preprocessor}{\#define RST\_INVERSE ESC\_CHAR"{}[27m"{}}}
- \DoxyCodeLine{51 \textcolor{preprocessor}{\#define RST\_HIDDEN ESC\_CHAR"{}[28m"{}}}
- \DoxyCodeLine{52 \textcolor{preprocessor}{\#define RST\_STRIKE ESC\_CHAR"{}[29m"{}}}
- \DoxyCodeLine{53 }
- \DoxyCodeLine{54 \textcolor{preprocessor}{\#define FG\_BLACK ESC\_CHAR"{}[30m"{}}}
- \DoxyCodeLine{55 \textcolor{preprocessor}{\#define FG\_RED ESC\_CHAR"{}[31m"{}}}
- \DoxyCodeLine{56 \textcolor{preprocessor}{\#define FG\_GREEN ESC\_CHAR"{}[32m"{}}}
- \DoxyCodeLine{57 \textcolor{preprocessor}{\#define FG\_YELLOW ESC\_CHAR"{}[33m"{}}}
- \DoxyCodeLine{58 \textcolor{preprocessor}{\#define FG\_BLUE ESC\_CHAR"{}[34m"{}}}
- \DoxyCodeLine{59 \textcolor{preprocessor}{\#define FG\_MAGENTA ESC\_CHAR"{}[35m"{}}}
- \DoxyCodeLine{60 \textcolor{preprocessor}{\#define FG\_CYAN ESC\_CHAR"{}[36m"{}}}
- \DoxyCodeLine{61 \textcolor{preprocessor}{\#define FG\_WHITE ESC\_CHAR"{}[37m"{}}}
- \DoxyCodeLine{62 \textcolor{preprocessor}{\#define FG\_DEFAULT ESC\_CHAR"{}[39m"{}}}
- \DoxyCodeLine{63 }
- \DoxyCodeLine{64 \textcolor{preprocessor}{\#define BG\_BLACK ESC\_CHAR"{}[40m"{}}}
- \DoxyCodeLine{65 \textcolor{preprocessor}{\#define BG\_RED ESC\_CHAR"{}[41m"{}}}
- \DoxyCodeLine{66 \textcolor{preprocessor}{\#define BG\_GREEN ESC\_CHAR"{}[42m"{}}}
- \DoxyCodeLine{67 \textcolor{preprocessor}{\#define BG\_YELLOW ESC\_CHAR"{}[43m"{}}}
- \DoxyCodeLine{68 \textcolor{preprocessor}{\#define BG\_BLUE ESC\_CHAR"{}[44m"{}}}
- \DoxyCodeLine{69 \textcolor{preprocessor}{\#define BG\_MAGENTA ESC\_CHAR"{}[45m"{}}}
- \DoxyCodeLine{70 \textcolor{preprocessor}{\#define BG\_CYAN ESC\_CHAR"{}[46m"{}}}
- \DoxyCodeLine{71 \textcolor{preprocessor}{\#define BG\_WHITE ESC\_CHAR"{}[47m"{}}}
- \DoxyCodeLine{72 \textcolor{preprocessor}{\#define BG\_DEFAULT ESC\_CHAR"{}[49m"{}}}
- \DoxyCodeLine{73 }
- \DoxyCodeLine{74 \textcolor{preprocessor}{\#define FG\_BBLACK ESC\_CHAR"{}[90m"{}}}
- \DoxyCodeLine{75 \textcolor{preprocessor}{\#define FG\_BRED ESC\_CHAR"{}[91m"{}}}
- \DoxyCodeLine{76 \textcolor{preprocessor}{\#define FG\_BGREEN ESC\_CHAR"{}[92m"{}}}
- \DoxyCodeLine{77 \textcolor{preprocessor}{\#define FG\_BYELLOW ESC\_CHAR"{}[93m"{}}}
- \DoxyCodeLine{78 \textcolor{preprocessor}{\#define FG\_BBLUE ESC\_CHAR"{}[94m"{}}}
- \DoxyCodeLine{79 \textcolor{preprocessor}{\#define FG\_BMAGENTA ESC\_CHAR"{}[95m"{}}}
- \DoxyCodeLine{80 \textcolor{preprocessor}{\#define FG\_BCYAN ESC\_CHAR"{}[96m"{}}}
- \DoxyCodeLine{81 \textcolor{preprocessor}{\#define FG\_BWHITE ESC\_CHAR"{}[97m"{}}}
- \DoxyCodeLine{82 }
- \DoxyCodeLine{83 \textcolor{preprocessor}{\#define BG\_BBLACK ESC\_CHAR"{}[100m"{}}}
- \DoxyCodeLine{84 \textcolor{preprocessor}{\#define BG\_BRED ESC\_CHAR"{}[101m"{}}}
- \DoxyCodeLine{85 \textcolor{preprocessor}{\#define BG\_BGREEN ESC\_CHAR"{}[102m"{}}}
- \DoxyCodeLine{86 \textcolor{preprocessor}{\#define BG\_BYELLOW ESC\_CHAR"{}[103m"{}}}
- \DoxyCodeLine{87 \textcolor{preprocessor}{\#define BG\_BBLUE ESC\_CHAR"{}[104m"{}}}
- \DoxyCodeLine{88 \textcolor{preprocessor}{\#define BG\_BMAGENTA ESC\_CHAR"{}[105m"{}}}
- \DoxyCodeLine{89 \textcolor{preprocessor}{\#define BG\_BCYAN ESC\_CHAR"{}[106m"{}}}
- \DoxyCodeLine{90 \textcolor{preprocessor}{\#define BG\_BWHITE ESC\_CHAR"{}[107m"{}}}
- \DoxyCodeLine{91 }
- \DoxyCodeLine{92 \textcolor{preprocessor}{\#define FG\_256 ESC\_CHAR"{}[38;5;\%dm"{}}}
- \DoxyCodeLine{93 \textcolor{preprocessor}{\#define BG\_256 ESC\_CHAR"{}[48;5;\%dm"{}}}
- \DoxyCodeLine{94 }
- \DoxyCodeLine{95 \textcolor{preprocessor}{\#define FG\_RGB ESC\_CHAR"{}[38;2;\%dm"{}}}
- \DoxyCodeLine{96 \textcolor{preprocessor}{\#define BG\_RGB ESC\_CHAR"{}[48;2;\%dm"{}}}
- \DoxyCodeLine{97 }
- \DoxyCodeLine{98 \textcolor{preprocessor}{\#endif}}
- \end{DoxyCode}
|