summaryrefslogtreecommitdiff
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2019-10-27 18:25:41 +0100
committerSylvain Joubert <joubert.sy@gmail.com>2019-11-04 18:59:20 +0100
commit93b66735ac2092675eec7a636625df84ff306fdc (patch)
treeb58c050ad714fa7ea5467f90d26873e764bfa7ea /Source/CursesDialog/ccmake.cxx
parentdbd14ecacf9b85dcdf5f566538167261dba224fe (diff)
downloadcmake-93b66735ac2092675eec7a636625df84ff306fdc.tar.gz
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.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 9e9dfbd195..7732105085 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -9,6 +9,7 @@
#include "cmsys/Encoding.hxx"
+#include "cmCursesColor.h"
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include "cmCursesStandardIncludes.h"
@@ -126,6 +127,7 @@ int main(int argc, char const* const* argv)
noecho(); /* Echo off */
cbreak(); /* nl- or cr not needed */
keypad(stdscr, true); /* Use key symbols as KEY_DOWN */
+ cmCursesColor::InitColors();
signal(SIGWINCH, onsig);