AnsiColorCode.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // ReSharper disable InconsistentNaming
  2. namespace Terminal.Gui.Drawing;
  3. /// <summary>
  4. /// The 16 foreground color codes used by ANSI Esc sequences for 256 color terminals. Add 10 to these values for
  5. /// background color.
  6. /// </summary>
  7. public enum AnsiColorCode
  8. {
  9. /// <summary>The ANSI color code for Black.</summary>
  10. BLACK = 30,
  11. /// <summary>The ANSI color code for Red.</summary>
  12. RED = 31,
  13. /// <summary>The ANSI color code for Green.</summary>
  14. GREEN = 32,
  15. /// <summary>The ANSI color code for Yellow.</summary>
  16. YELLOW = 33,
  17. /// <summary>The ANSI color code for Blue.</summary>
  18. BLUE = 34,
  19. /// <summary>The ANSI color code for Magenta.</summary>
  20. MAGENTA = 35,
  21. /// <summary>The ANSI color code for Cyan.</summary>
  22. CYAN = 36,
  23. /// <summary>The ANSI color code for White.</summary>
  24. WHITE = 37,
  25. /// <summary>The ANSI color code for Bright Black.</summary>
  26. BRIGHT_BLACK = 90,
  27. /// <summary>The ANSI color code for Bright Red.</summary>
  28. BRIGHT_RED = 91,
  29. /// <summary>The ANSI color code for Bright Green.</summary>
  30. BRIGHT_GREEN = 92,
  31. /// <summary>The ANSI color code for Bright Yellow.</summary>
  32. BRIGHT_YELLOW = 93,
  33. /// <summary>The ANSI color code for Bright Blue.</summary>
  34. BRIGHT_BLUE = 94,
  35. /// <summary>The ANSI color code for Bright Magenta.</summary>
  36. BRIGHT_MAGENTA = 95,
  37. /// <summary>The ANSI color code for Bright Cyan.</summary>
  38. BRIGHT_CYAN = 96,
  39. /// <summary>The ANSI color code for Bright White.</summary>
  40. BRIGHT_WHITE = 97
  41. }