2 /** \file color-internal.h
3 * \brief Header: Internal stuff of color setup
6 #ifndef MC_COLOR_INTERNAL_H
7 #define MC_COLOR_INTERNAL_H
9 #include <sys/types.h> /* size_t */
11 #include "lib/global.h"
14 # include "tty-slang.h"
16 # include "tty-ncurses.h"
17 #endif /* HAVE_SLANG */
19 extern gboolean use_colors
;
20 extern gboolean mc_tty_color_disable
;
22 typedef struct mc_color_pair_struct
34 SPEC_A_REVERSE
= -100,
36 SPEC_A_BOLD_REVERSE
= -102,
37 SPEC_A_UNDERLINE
= -103
38 } tty_special_color_t
;
41 const char *tty_color_get_valid_name (const char *);
42 int tty_color_get_index_by_name (const char *);
44 void tty_color_init_lib (gboolean
, gboolean
);
45 void tty_color_deinit_lib (void);
47 void tty_color_try_alloc_pair_lib (tty_color_pair_t
*);
49 #endif /* MC_COLOR_INTERNAL_H */