color.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /** \file color.h
  2. * \brief Header: color setup
  3. *
  4. * PLEASE FORGOT ABOUT tty/color.h!
  5. * Use skin engine for getting needed color pairs.
  6. *
  7. * edit/syntax.c may use this file directly, I'm agree. :)
  8. *
  9. */
  10. #ifndef MC_COLOR_H
  11. #define MC_COLOR_H
  12. #include "lib/global.h" /* glib.h */
  13. #ifdef HAVE_SLANG
  14. # include "color-slang.h"
  15. #else
  16. # include "tty-ncurses.h"
  17. #endif
  18. /* colors specified on the command line: they override any other setting */
  19. extern char *command_line_colors;
  20. void tty_init_colors (gboolean disable, gboolean force);
  21. void tty_colors_done (void);
  22. gboolean tty_use_colors (void);
  23. int tty_try_alloc_color_pair (const char *, const char *);
  24. int tty_try_alloc_color_pair2 (const char *, const char *, gboolean);
  25. void tty_color_free_all_tmp (void);
  26. void tty_color_free_all_non_tmp (void);
  27. void tty_setcolor (int color);
  28. void tty_lowlevel_setcolor (int color);
  29. void tty_set_normal_attrs (void);
  30. void tty_color_set_defaults (const char *, const char *);
  31. #define ALLOC_COLOR_PAIR_INDEX 1
  32. #endif /* MC_COLOR_H */