Terminal.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #pragma once
  2. namespace dev
  3. {
  4. namespace con
  5. {
  6. #if defined(_WIN32)
  7. #define EthReset "" // Text Reset
  8. #define EthReset "" // Text Reset
  9. // Regular Colors
  10. #define EthBlack "" // Black
  11. #define EthCoal "" // Black
  12. #define EthGray "" // White
  13. #define EthWhite "" // White
  14. #define EthMaroon "" // Red
  15. #define EthRed "" // Red
  16. #define EthGreen "" // Green
  17. #define EthLime "" // Green
  18. #define EthOrange "" // Yellow
  19. #define EthYellow "" // Yellow
  20. #define EthNavy "" // Blue
  21. #define EthBlue "" // Blue
  22. #define EthViolet "" // Purple
  23. #define EthPurple "" // Purple
  24. #define EthTeal "" // Cyan
  25. #define EthCyan "" // Cyan
  26. #define EthBlackBold "" // Black
  27. #define EthCoalBold "" // Black
  28. #define EthGrayBold "" // White
  29. #define EthWhiteBold "" // White
  30. #define EthMaroonBold "" // Red
  31. #define EthRedBold "" // Red
  32. #define EthGreenBold "" // Green
  33. #define EthLimeBold "" // Green
  34. #define EthOrangeBold "" // Yellow
  35. #define EthYellowBold "" // Yellow
  36. #define EthNavyBold "" // Blue
  37. #define EthBlueBold "" // Blue
  38. #define EthVioletBold "" // Purple
  39. #define EthPurpleBold "" // Purple
  40. #define EthTealBold "" // Cyan
  41. #define EthCyanBold "" // Cyan
  42. // Background
  43. #define EthOnBlack "" // Black
  44. #define EthOnCoal "" // Black
  45. #define EthOnGray "" // White
  46. #define EthOnWhite "" // White
  47. #define EthOnMaroon "" // Red
  48. #define EthOnRed "" // Red
  49. #define EthOnGreen "" // Green
  50. #define EthOnLime "" // Green
  51. #define EthOnOrange "" // Yellow
  52. #define EthOnYellow "" // Yellow
  53. #define EthOnNavy "" // Blue
  54. #define EthOnBlue "" // Blue
  55. #define EthOnViolet "" // Purple
  56. #define EthOnPurple "" // Purple
  57. #define EthOnTeal "" // Cyan
  58. #define EthOnCyan "" // Cyan
  59. // Underline
  60. #define EthBlackUnder "" // Black
  61. #define EthGrayUnder "" // White
  62. #define EthMaroonUnder "" // Red
  63. #define EthGreenUnder "" // Green
  64. #define EthOrangeUnder "" // Yellow
  65. #define EthNavyUnder "" // Blue
  66. #define EthVioletUnder "" // Purple
  67. #define EthTealUnder "" // Cyan
  68. #else
  69. #define EthReset "\x1b[0m" // Text Reset
  70. // Regular Colors
  71. #define EthBlack "\x1b[30m" // Black
  72. #define EthCoal "\x1b[90m" // Black
  73. #define EthGray "\x1b[37m" // White
  74. #define EthWhite "\x1b[97m" // White
  75. #define EthMaroon "\x1b[31m" // Red
  76. #define EthRed "\x1b[91m" // Red
  77. #define EthGreen "\x1b[32m" // Green
  78. #define EthLime "\x1b[92m" // Green
  79. #define EthOrange "\x1b[33m" // Yellow
  80. #define EthYellow "\x1b[93m" // Yellow
  81. #define EthNavy "\x1b[34m" // Blue
  82. #define EthBlue "\x1b[94m" // Blue
  83. #define EthViolet "\x1b[35m" // Purple
  84. #define EthPurple "\x1b[95m" // Purple
  85. #define EthTeal "\x1b[36m" // Cyan
  86. #define EthCyan "\x1b[96m" // Cyan
  87. #define EthBlackBold "\x1b[1;30m" // Black
  88. #define EthCoalBold "\x1b[1;90m" // Black
  89. #define EthGrayBold "\x1b[1;37m" // White
  90. #define EthWhiteBold "\x1b[1;97m" // White
  91. #define EthMaroonBold "\x1b[1;31m" // Red
  92. #define EthRedBold "\x1b[1;91m" // Red
  93. #define EthGreenBold "\x1b[1;32m" // Green
  94. #define EthLimeBold "\x1b[1;92m" // Green
  95. #define EthOrangeBold "\x1b[1;33m" // Yellow
  96. #define EthYellowBold "\x1b[1;93m" // Yellow
  97. #define EthNavyBold "\x1b[1;34m" // Blue
  98. #define EthBlueBold "\x1b[1;94m" // Blue
  99. #define EthVioletBold "\x1b[1;35m" // Purple
  100. #define EthPurpleBold "\x1b[1;95m" // Purple
  101. #define EthTealBold "\x1b[1;36m" // Cyan
  102. #define EthCyanBold "\x1b[1;96m" // Cyan
  103. // Background
  104. #define EthOnBlack "\x1b[40m" // Black
  105. #define EthOnCoal "\x1b[100m" // Black
  106. #define EthOnGray "\x1b[47m" // White
  107. #define EthOnWhite "\x1b[107m" // White
  108. #define EthOnMaroon "\x1b[41m" // Red
  109. #define EthOnRed "\x1b[101m" // Red
  110. #define EthOnGreen "\x1b[42m" // Green
  111. #define EthOnLime "\x1b[102m" // Green
  112. #define EthOnOrange "\x1b[43m" // Yellow
  113. #define EthOnYellow "\x1b[103m" // Yellow
  114. #define EthOnNavy "\x1b[44m" // Blue
  115. #define EthOnBlue "\x1b[104m" // Blue
  116. #define EthOnViolet "\x1b[45m" // Purple
  117. #define EthOnPurple "\x1b[105m" // Purple
  118. #define EthOnTeal "\x1b[46m" // Cyan
  119. #define EthOnCyan "\x1b[106m" // Cyan
  120. // Underline
  121. #define EthBlackUnder "\x1b[4;30m" // Black
  122. #define EthGrayUnder "\x1b[4;37m" // White
  123. #define EthMaroonUnder "\x1b[4;31m" // Red
  124. #define EthGreenUnder "\x1b[4;32m" // Green
  125. #define EthOrangeUnder "\x1b[4;33m" // Yellow
  126. #define EthNavyUnder "\x1b[4;34m" // Blue
  127. #define EthVioletUnder "\x1b[4;35m" // Purple
  128. #define EthTealUnder "\x1b[4;36m" // Cyan
  129. #endif
  130. }
  131. }