Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CursesDialog/cmCursesColor.h
5000 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst or https://cmake.org/licensing for details. */
3
#pragma once
4
5
class cmCursesColor
6
{
7
public:
8
enum Color
9
{
10
// Default color is pair 0
11
BoolOff = 1,
12
BoolOn,
13
String,
14
Path,
15
Choice
16
};
17
18
static bool HasColors();
19
20
static void InitColors();
21
22
protected:
23
static short GetColor(char id, short fallback);
24
};
25
26