Ticket #1930: src/strutil8bit.c: fixed missing include of fs.h
[free-mc.git] / src / tty / color.h
blob138e8dad348e2f604a950d8a947788461da9cf74
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 "../../src/global.h" /* glib.h */
17 #ifdef HAVE_SLANG
18 # include "../../src/tty/color-slang.h"
19 #else
20 # include "../../src/tty/tty-ncurses.h"
21 #endif
23 extern char *command_line_colors;
25 void tty_init_colors (gboolean disable, gboolean force);
26 void tty_colors_done (void);
28 gboolean tty_use_colors (void);
29 int tty_try_alloc_color_pair (const char *, const char *);
30 int tty_try_alloc_color_pair2 (const char *, const char *, gboolean);
32 void tty_color_free_all_tmp (void);
33 void tty_color_free_all_non_tmp (void);
35 void tty_setcolor (int color);
36 void tty_lowlevel_setcolor (int color);
37 void tty_set_normal_attrs (void);
39 void tty_color_set_defaults (const char *, const char *);
41 #define ALLOC_COLOR_PAIR_INDEX 1
43 #endif /* MC_COLOR_H */