💿🐜 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.

66 lines
2.7 KiB

  1. /*
  2. * Copyright (C) 2017-2019 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. #include "ansi-escape-codes.hpp"
  20. const char* ANSI_CODE_RESET = "\u001b[0m";
  21. const char* ANSI_CODE_BLACK = "\u001b[30m";
  22. const char* ANSI_CODE_RED = "\u001b[31m";
  23. const char* ANSI_CODE_GREEN = "\u001b[32m";
  24. const char* ANSI_CODE_YELLOW = "\u001b[33m";
  25. const char* ANSI_CODE_BLUE = "\u001b[34m";
  26. const char* ANSI_CODE_MAGENTA = "\u001b[35m";
  27. const char* ANSI_CODE_CYAN = "\u001b[36m";
  28. const char* ANSI_CODE_WHITE = "\u001b[37m";
  29. const char* ANSI_CODE_BRIGHT_BLACK = "\u001b[30;1m";
  30. const char* ANSI_CODE_BRIGHT_RED = "\u001b[31;1m";
  31. const char* ANSI_CODE_BRIGHT_GREEN = "\u001b[32;1m";
  32. const char* ANSI_CODE_BRIGHT_YELLOW = "\u001b[33;1m";
  33. const char* ANSI_CODE_BRIGHT_BLUE = "\u001b[34;1m";
  34. const char* ANSI_CODE_BRIGHT_MAGENTA = "\u001b[35;1m";
  35. const char* ANSI_CODE_BRIGHT_CYAN = "\u001b[36;1m";
  36. const char* ANSI_CODE_BRIGHT_WHITE = "\u001b[37;1m";
  37. const char* ANSI_CODE_BACKGROUND_BLACK = "\u001b[40m";
  38. const char* ANSI_CODE_BACKGROUND_RED = "\u001b[41m";
  39. const char* ANSI_CODE_BACKGROUND_GREEN = "\u001b[42m";
  40. const char* ANSI_CODE_BACKGROUND_YELLOW = "\u001b[43m";
  41. const char* ANSI_CODE_BACKGROUND_BLUE = "\u001b[44m";
  42. const char* ANSI_CODE_BACKGROUND_MAGENTA = "\u001b[45m";
  43. const char* ANSI_CODE_BACKGROUND_CYAN = "\u001b[46m";
  44. const char* ANSI_CODE_BACKGROUND_WHITE = "\u001b[47m";
  45. const char* ANSI_CODE_BACKGROUND_BRIGHT_BLACK = "\u001b[40;1m";
  46. const char* ANSI_CODE_BACKGROUND_BRIGHT_RED = "\u001b[41;1m";
  47. const char* ANSI_CODE_BACKGROUND_BRIGHT_GREEN = "\u001b[42;1m";
  48. const char* ANSI_CODE_BACKGROUND_BRIGHT_YELLOW = "\u001b[43;1m";
  49. const char* ANSI_CODE_BACKGROUND_BRIGHT_BLUE = "\u001b[44;1m";
  50. const char* ANSI_CODE_BACKGROUND_BRIGHT_MAGENTA = "\u001b[45;1m";
  51. const char* ANSI_CODE_BACKGROUND_BRIGHT_CYAN = "\u001b[46;1m";
  52. const char* ANSI_CODE_BACKGROUND_BRIGHT_WHITE = "\u001b[47;1m";
  53. const char* ANSI_CODE_BOLD = "\u001b[1m";
  54. const char* ANSI_CODE_UNDERLINE = "\u001b[4m";
  55. const char* ANSI_CODE_REVERSED = "\u001b[7m";