Merge branch '4592_clang_format'
[midnight-commander.git] / lib / tty / color-slang.h
blob1b9a3b09b50d96f2de421adcd63ea2432c2e704a
2 /** \file color-slang.h
3 * \brief Header: S-Lang-specific color setup
4 */
6 #ifndef MC__COLOR_SLANG_H
7 #define MC__COLOR_SLANG_H
9 #include "tty-slang.h" // S-Lang headers
11 /*** typedefs(not structures) and defined constants **********************************************/
13 /* When using Slang with color, we have all the indexes free but
14 * those defined here (A_BOLD, A_ITALIC, A_UNDERLINE, A_REVERSE, A_BLINK)
17 #ifndef A_BOLD
18 # define A_BOLD SLTT_BOLD_MASK
19 #endif
20 #ifdef SLTT_ITALIC_MASK // available since slang-pre2.3.0-107
21 # ifndef A_ITALIC
22 # define A_ITALIC SLTT_ITALIC_MASK
23 # endif
24 #endif
25 #ifndef A_UNDERLINE
26 # define A_UNDERLINE SLTT_ULINE_MASK
27 #endif
28 #ifndef A_REVERSE
29 # define A_REVERSE SLTT_REV_MASK
30 #endif
31 #ifndef A_BLINK
32 # define A_BLINK SLTT_BLINK_MASK
33 #endif
35 /*** enums ***************************************************************************************/
37 enum
39 COLOR_BLACK = 0,
40 COLOR_RED,
41 COLOR_GREEN,
42 COLOR_YELLOW,
43 COLOR_BLUE,
44 COLOR_MAGENTA,
45 COLOR_CYAN,
46 COLOR_WHITE
49 /*** structures declarations (and typedefs of structures)*****************************************/
51 /*** global variables defined in .c file *********************************************************/
53 /*** declarations of public functions ************************************************************/
55 /*** inline functions ****************************************************************************/
56 #endif