New in version 3.18.
Determines what colors are used by the CMake curses interface, when run on a terminal that supports colors. The syntax follows the same conventions as
LS_COLORS; that is, a list of key/value pairs separated by
Keys are a single letter corresponding to a CMake cache variable type:
c: A value which has an associated list of choices.
BOOLwhich has a true-like value (e.g.
BOOLwhich has a false-like value (e.g.
Values are an integer number that specifies what color to use.
0 is black (you probably don’t want to use that). Others are determined by your terminal’s color support. Most (color) terminals will support at least 8 or 16 colors. Some will support up to 256 colors. The colors will likely match this chart, although the first 16 colors may match the original CGA color palette. (Many modern terminal emulators also allow their color palette, at least for the first 16 colors, to be configured by the user.)
Note that fairly minimal checking is done for bad colors (although a value higher than what curses believes your terminal supports will be silently ignored) or bad syntax.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.