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:
Sylvain Joubert
2019-10-27 18:25:41 +01:00
parent dbd14ecacf
commit 93b66735ac
9 changed files with 118 additions and 6 deletions
+24
View File
@@ -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