ansi__escape_8h_source.tex 7.6 KB

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