mirror of
https://github.com/Kitware/CMake.git
synced 2025-06-15 08:30:44 +08:00

Change the default color for strings from BLUE (which is nearly illegible on any terminals using the standard color palette which has been around since at least CGA, almost 40 years ago) to CYAN. Add ability to customize the colors via an environment variable (inspired by LS_COLORS and using similar syntax). Fixes: #20596
28 lines
491 B
C++
28 lines
491 B
C++
/* 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,
|
|
Choice
|
|
};
|
|
|
|
static bool HasColors();
|
|
|
|
static void InitColors();
|
|
|
|
protected:
|
|
static short GetColor(char id, short fallback);
|
|
};
|
|
|
|
#endif // cmCursesColor_h
|