cmCursesColor.h 429 B

123456789101112131415161718192021222324
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. class cmCursesColor
  5. {
  6. public:
  7. enum Color
  8. {
  9. // Default color is pair 0
  10. BoolOff = 1,
  11. BoolOn,
  12. String,
  13. Path,
  14. Choice
  15. };
  16. static bool HasColors();
  17. static void InitColors();
  18. protected:
  19. static short GetColor(char id, short fallback);
  20. };