2009-05-10 19:01:15 +04:00
|
|
|
|
|
|
|
/** \file color-slang.h
|
|
|
|
* \brief Header: S-Lang-specific color setup
|
|
|
|
*/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifndef MC__COLOR_SLANG_H
|
|
|
|
#define MC__COLOR_SLANG_H
|
2009-05-10 19:01:15 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#include "tty-slang.h" /* S-Lang headers */
|
2009-05-13 17:05:55 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/* When using Slang with color, we have all the indexes free but
|
2015-02-17 15:22:53 +03:00
|
|
|
* those defined here (A_BOLD, A_ITALIC, A_UNDERLINE, A_REVERSE, A_BLINK)
|
2010-11-08 13:21:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef A_BOLD
|
|
|
|
#define A_BOLD SLTT_BOLD_MASK
|
|
|
|
#endif /* A_BOLD */
|
2015-02-17 15:22:53 +03:00
|
|
|
#ifdef SLTT_ITALIC_MASK /* available since slang-pre2.3.0-107 */
|
|
|
|
#ifndef A_ITALIC
|
|
|
|
#define A_ITALIC SLTT_ITALIC_MASK
|
|
|
|
#endif /* A_ITALIC */
|
|
|
|
#endif /* SLTT_ITALIC_MASK */
|
2010-12-29 12:58:10 +03:00
|
|
|
#ifndef A_UNDERLINE
|
|
|
|
#define A_UNDERLINE SLTT_ULINE_MASK
|
|
|
|
#endif /* A_UNDERLINE */
|
|
|
|
#ifndef A_REVERSE
|
|
|
|
#define A_REVERSE SLTT_REV_MASK
|
|
|
|
#endif /* A_REVERSE */
|
|
|
|
#ifndef A_BLINK
|
|
|
|
#define A_BLINK SLTT_BLINK_MASK
|
|
|
|
#endif /* A_BLINK */
|
2010-11-08 13:21:45 +03:00
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2009-05-13 17:05:55 +04:00
|
|
|
COLOR_BLACK = 0,
|
|
|
|
COLOR_RED,
|
|
|
|
COLOR_GREEN,
|
|
|
|
COLOR_YELLOW,
|
|
|
|
COLOR_BLUE,
|
|
|
|
COLOR_MAGENTA,
|
|
|
|
COLOR_CYAN,
|
|
|
|
COLOR_WHITE
|
|
|
|
};
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
2009-05-13 17:05:55 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
2009-05-13 17:05:55 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* MC_COLOR_SLANG_H */
|