Merge branch '2087_standalone_mcedit_crash'
[kaloumi3.git] / lib / tty / color.h
blobc204d0a2bd89ae251dad923164f74732716d8315
2 /** \file color.h
3 * \brief Header: color setup
5 * PLEASE FORGOT ABOUT tty/color.h!
6 * Use skin engine for getting needed color pairs.
8 * edit/syntax.c may use this file directly, I'm agree. :)
12 #ifndef MC_COLOR_H
13 #define MC_COLOR_H
15 #include "lib/global.h" /* glib.h */
17 #ifdef HAVE_SLANG
18 # include "color-slang.h"
19 #else
20 # include "tty-ncurses.h"
21 #endif
23 /* colors specified on the command line: they override any other setting */
24 extern char *command_line_colors;
26 void tty_init_colors (gboolean disable, gboolean force);
27 void tty_colors_done (void);
29 gboolean tty_use_colors (void);
30 int tty_try_alloc_color_pair (const char *, const char *);
31 int tty_try_alloc_color_pair2 (const char *, const char *, gboolean);
33 void tty_color_free_all_tmp (void);
34 void tty_color_free_all_non_tmp (void);
36 void tty_setcolor (int color);
37 void tty_lowlevel_setcolor (int color);
38 void tty_set_normal_attrs (void);
40 void tty_color_set_defaults (const char *, const char *);
42 #define ALLOC_COLOR_PAIR_INDEX 1
44 #endif /* MC_COLOR_H */