root/lib/tty/color-slang.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 
   2 /** \file color-slang.h
   3  *  \brief Header: S-Lang-specific color setup
   4  */
   5 
   6 #ifndef MC__COLOR_SLANG_H
   7 #define MC__COLOR_SLANG_H
   8 
   9 #include "tty-slang.h"          /* S-Lang headers */
  10 
  11 /*** typedefs(not structures) and defined constants **********************************************/
  12 
  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)
  15  */
  16 
  17 #ifndef A_BOLD
  18 #define A_BOLD SLTT_BOLD_MASK
  19 #endif /* A_BOLD */
  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 /* A_ITALIC */
  24 #endif /* SLTT_ITALIC_MASK */
  25 #ifndef A_UNDERLINE
  26 #define A_UNDERLINE SLTT_ULINE_MASK
  27 #endif /* A_UNDERLINE */
  28 #ifndef A_REVERSE
  29 #define A_REVERSE SLTT_REV_MASK
  30 #endif /* A_REVERSE */
  31 #ifndef A_BLINK
  32 #define A_BLINK SLTT_BLINK_MASK
  33 #endif /* A_BLINK */
  34 
  35 /*** enums ***************************************************************************************/
  36 
  37 enum
  38 {
  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
  47 };
  48 
  49 /*** structures declarations (and typedefs of structures)*****************************************/
  50 
  51 /*** global variables defined in .c file *********************************************************/
  52 
  53 /*** declarations of public functions ************************************************************/
  54 
  55 /*** inline functions ****************************************************************************/
  56 #endif /* MC_COLOR_SLANG_H */

/* [previous][next][first][last][top][bottom][index][help]  */