po/ru.po: fixed plural forms.
[midnight-commander.git] / lib / tty / color.h
blob002ed0c75a8a309c269526b0be9b1f9c01dba815
1 /** \file color.h
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. :)
9 */
11 #ifndef MC__COLOR_H
12 #define MC__COLOR_H
14 #include "lib/global.h" /* glib.h */
16 #ifdef HAVE_SLANG
17 #include "color-slang.h"
18 #else
19 #include "tty-ncurses.h"
20 #endif
22 /*** typedefs(not structures) and defined constants **********************************************/
24 #define ALLOC_COLOR_PAIR_INDEX 1
26 /*** enums ***************************************************************************************/
28 /*** structures declarations (and typedefs of structures)*****************************************/
30 /*** global variables defined in .c file *********************************************************/
32 /* colors specified on the command line: they override any other setting */
33 extern char *command_line_colors;
35 /*** declarations of public functions ************************************************************/
37 void tty_init_colors (gboolean disable, gboolean force);
38 void tty_colors_done (void);
40 gboolean tty_use_colors (void);
41 int tty_try_alloc_color_pair (const char *, const char *);
42 int tty_try_alloc_color_pair2 (const char *, const char *, gboolean);
44 void tty_color_free_all_tmp (void);
45 void tty_color_free_all_non_tmp (void);
47 void tty_setcolor (int color);
48 void tty_lowlevel_setcolor (int color);
49 void tty_set_normal_attrs (void);
51 void tty_color_set_defaults (const char *, const char *);
53 /*** inline functions ****************************************************************************/
54 #endif /* MC_COLOR_H */