AnsiColorCode.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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
  4. /// background color.
  5. /// </summary>
  6. public enum AnsiColorCode
  7. {
  8. /// <summary>The ANSI color code for Black.</summary>
  9. BLACK = 30,
  10. /// <summary>The ANSI color code for Red.</summary>
  11. RED = 31,
  12. /// <summary>The ANSI color code for Green.</summary>
  13. GREEN = 32,
  14. /// <summary>The ANSI color code for Yellow.</summary>
  15. YELLOW = 33,
  16. /// <summary>The ANSI color code for Blue.</summary>
  17. BLUE = 34,
  18. /// <summary>The ANSI color code for Magenta.</summary>
  19. MAGENTA = 35,
  20. /// <summary>The ANSI color code for Cyan.</summary>
  21. CYAN = 36,
  22. /// <summary>The ANSI color code for White.</summary>
  23. WHITE = 37,
  24. /// <summary>The ANSI color code for Bright Black.</summary>
  25. BRIGHT_BLACK = 90,
  26. /// <summary>The ANSI color code for Bright Red.</summary>
  27. BRIGHT_RED = 91,
  28. /// <summary>The ANSI color code for Bright Green.</summary>
  29. BRIGHT_GREEN = 92,
  30. /// <summary>The ANSI color code for Bright Yellow.</summary>
  31. BRIGHT_YELLOW = 93,
  32. /// <summary>The ANSI color code for Bright Blue.</summary>
  33. BRIGHT_BLUE = 94,
  34. /// <summary>The ANSI color code for Bright Magenta.</summary>
  35. BRIGHT_MAGENTA = 95,
  36. /// <summary>The ANSI color code for Bright Cyan.</summary>
  37. BRIGHT_CYAN = 96,
  38. /// <summary>The ANSI color code for Bright White.</summary>
  39. BRIGHT_WHITE = 97
  40. }