AnsiColorCode.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// The 16 foreground color codes used by ANSI Esc sequences for 256 color terminals. Add 10 to these values for background
  4. /// color.
  5. /// </summary>
  6. public enum AnsiColorCode {
  7. /// <summary>
  8. /// The ANSI color code for Black.
  9. /// </summary>
  10. BLACK = 30,
  11. /// <summary>
  12. /// The ANSI color code for Red.
  13. /// </summary>
  14. RED = 31,
  15. /// <summary>
  16. /// The ANSI color code for Green.
  17. /// </summary>
  18. GREEN = 32,
  19. /// <summary>
  20. /// The ANSI color code for Yellow.
  21. /// </summary>
  22. YELLOW = 33,
  23. /// <summary>
  24. /// The ANSI color code for Blue.
  25. /// </summary>
  26. BLUE = 34,
  27. /// <summary>
  28. /// The ANSI color code for Magenta.
  29. /// </summary>
  30. MAGENTA = 35,
  31. /// <summary>
  32. /// The ANSI color code for Cyan.
  33. /// </summary>
  34. CYAN = 36,
  35. /// <summary>
  36. /// The ANSI color code for White.
  37. /// </summary>
  38. WHITE = 37,
  39. /// <summary>
  40. /// The ANSI color code for Bright Black.
  41. /// </summary>
  42. BRIGHT_BLACK = 90,
  43. /// <summary>
  44. /// The ANSI color code for Bright Red.
  45. /// </summary>
  46. BRIGHT_RED = 91,
  47. /// <summary>
  48. /// The ANSI color code for Bright Green.
  49. /// </summary>
  50. BRIGHT_GREEN = 92,
  51. /// <summary>
  52. /// The ANSI color code for Bright Yellow.
  53. /// </summary>
  54. BRIGHT_YELLOW = 93,
  55. /// <summary>
  56. /// The ANSI color code for Bright Blue.
  57. /// </summary>
  58. BRIGHT_BLUE = 94,
  59. /// <summary>
  60. /// The ANSI color code for Bright Magenta.
  61. /// </summary>
  62. BRIGHT_MAGENTA = 95,
  63. /// <summary>
  64. /// The ANSI color code for Bright Cyan.
  65. /// </summary>
  66. BRIGHT_CYAN = 96,
  67. /// <summary>
  68. /// The ANSI color code for Bright White.
  69. /// </summary>
  70. BRIGHT_WHITE = 97
  71. }