color-slang.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /** \file color-slang.h
  2. * \brief Header: S-Lang-specific color setup
  3. */
  4. #ifndef MC__COLOR_SLANG_H
  5. #define MC__COLOR_SLANG_H
  6. #include "tty-slang.h" /* S-Lang headers */
  7. /*** typedefs(not structures) and defined constants **********************************************/
  8. /* When using Slang with color, we have all the indexes free but
  9. * those defined here (A_BOLD, A_ITALIC, A_UNDERLINE, A_REVERSE, A_BLINK)
  10. */
  11. #ifndef A_BOLD
  12. #define A_BOLD SLTT_BOLD_MASK
  13. #endif /* A_BOLD */
  14. #ifdef SLTT_ITALIC_MASK /* available since slang-pre2.3.0-107 */
  15. #ifndef A_ITALIC
  16. #define A_ITALIC SLTT_ITALIC_MASK
  17. #endif /* A_ITALIC */
  18. #endif /* SLTT_ITALIC_MASK */
  19. #ifndef A_UNDERLINE
  20. #define A_UNDERLINE SLTT_ULINE_MASK
  21. #endif /* A_UNDERLINE */
  22. #ifndef A_REVERSE
  23. #define A_REVERSE SLTT_REV_MASK
  24. #endif /* A_REVERSE */
  25. #ifndef A_BLINK
  26. #define A_BLINK SLTT_BLINK_MASK
  27. #endif /* A_BLINK */
  28. /*** enums ***************************************************************************************/
  29. enum
  30. {
  31. COLOR_BLACK = 0,
  32. COLOR_RED,
  33. COLOR_GREEN,
  34. COLOR_YELLOW,
  35. COLOR_BLUE,
  36. COLOR_MAGENTA,
  37. COLOR_CYAN,
  38. COLOR_WHITE
  39. };
  40. /*** structures declarations (and typedefs of structures)*****************************************/
  41. /*** global variables defined in .c file *********************************************************/
  42. /*** declarations of public functions ************************************************************/
  43. /*** inline functions ****************************************************************************/
  44. #endif /* MC_COLOR_SLANG_H */