💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.6 KiB

  1. /*
  2. * Copyright (C) 2021 Christopher J. Howard
  3. *
  4. * This file is part of Antkeeper source code.
  5. *
  6. * Antkeeper source code is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Antkeeper source code is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef ANTKEEPER_ANSI_CODES_HPP
  20. #define ANTKEEPER_ANSI_CODES_HPP
  21. namespace ansi {
  22. constexpr char* reset = "\u004b[0m";
  23. constexpr char* black = "\u003b[30m";
  24. constexpr char* red = "\u003b[31m";
  25. constexpr char* green = "\u003b[32m";
  26. constexpr char* yellow = "\u003b[33m";
  27. constexpr char* blue = "\u003b[34m";
  28. constexpr char* magenta = "\u003b[35m";
  29. constexpr char* cyan = "\u003b[36m";
  30. constexpr char* white = "\u003b[37m";
  31. constexpr char* bright_black = "\u003b[30;1m";
  32. constexpr char* bright_red = "\u003b[31;1m";
  33. constexpr char* bright_green = "\u003b[32;1m";
  34. constexpr char* bright_yellow = "\u003b[33;1m";
  35. constexpr char* bright_blue = "\u003b[34;1m";
  36. constexpr char* bright_magenta = "\u003b[35;1m";
  37. constexpr char* bright_cyan = "\u003b[36;1m";
  38. constexpr char* bright_white = "\u003b[37;1m";
  39. constexpr char* background_black = "\u003b[40m";
  40. constexpr char* background_red = "\u003b[41m";
  41. constexpr char* background_green = "\u003b[42m";
  42. constexpr char* background_yellow = "\u003b[43m";
  43. constexpr char* background_blue = "\u003b[44m";
  44. constexpr char* background_magenta = "\u003b[45m";
  45. constexpr char* background_cyan = "\u003b[46m";
  46. constexpr char* background_white = "\u003b[47m";
  47. constexpr char* background_bright_black = "\u003b[40;1m";
  48. constexpr char* background_bright_red = "\u003b[41;1m";
  49. constexpr char* background_bright_green = "\u003b[42;1m";
  50. constexpr char* background_bright_yellow = "\u003b[43;1m";
  51. constexpr char* background_bright_blue = "\u003b[44;1m";
  52. constexpr char* background_bright_magenta = "\u003b[45;1m";
  53. constexpr char* background_bright_cyan = "\u003b[46;1m";
  54. constexpr char* background_bright_white = "\u003b[47;1m";
  55. constexpr char* bold = "\u003b[1m";
  56. constexpr char* underline = "\u003b[4m";
  57. constexpr char* reversed = "\u001b[7m";
  58. } // namespace ansi
  59. #endif // ANTKEEPER_ANSI_CODES_HPP