mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
ccmake: Use type-based colors to display cache values
The colors are based on the entry type (or value for booleans), paths and filepaths sharing the same color.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#ifndef cmCursesColor_h
|
||||
#define cmCursesColor_h
|
||||
|
||||
class cmCursesColor
|
||||
{
|
||||
public:
|
||||
enum Color
|
||||
{
|
||||
// Default color is pair 0
|
||||
BoolOff = 1,
|
||||
BoolOn,
|
||||
String,
|
||||
Path,
|
||||
Options
|
||||
};
|
||||
|
||||
static bool HasColors();
|
||||
|
||||
static void InitColors();
|
||||
};
|
||||
|
||||
#endif // cmCursesColor_h
|
||||
Reference in New Issue
Block a user