2 * \brief Header: color setup
4 * PLEASE FORGOT ABOUT tty/color.h!
5 * Use skin engine for getting needed color pairs.
7 * edit/syntax.c may use this file directly, I'm agree. :)
14 #include "lib/global.h" /* glib.h */
17 #include "color-slang.h"
19 #include "tty-ncurses.h"
22 /*** typedefs(not structures) and defined constants **********************************************/
24 /*** enums ***************************************************************************************/
26 /*** structures declarations (and typedefs of structures)*****************************************/
28 /*** global variables defined in .c file *********************************************************/
30 /*** declarations of public functions ************************************************************/
32 void tty_init_colors (gboolean disable
, gboolean force
);
33 void tty_colors_done (void);
35 gboolean
tty_use_colors (void);
36 int tty_try_alloc_color_pair (const char *fg
, const char *bg
, const char *attrs
);
37 int tty_try_alloc_color_pair2 (const char *fg
, const char *bg
, const char *attrs
,
38 gboolean is_temp_color
);
40 void tty_color_free_all_tmp (void);
41 void tty_color_free_all_non_tmp (void);
43 void tty_setcolor (int color
);
44 void tty_lowlevel_setcolor (int color
);
45 void tty_set_normal_attrs (void);
47 void tty_color_set_defaults (const char *fgcolor
, const char *bgcolor
, const char *attrs
);
49 extern gboolean
tty_use_256colors (GError
** error
);
50 extern gboolean
tty_use_truecolors (GError
** error
);
52 /*** inline functions ****************************************************************************/
54 #endif /* MC__COLOR_H */