2009-02-05 21:28:18 +03:00
|
|
|
|
|
|
|
/** \file color.h
|
|
|
|
* \brief Header: color setup
|
2009-09-04 18:22:49 +04:00
|
|
|
*
|
|
|
|
* PLEASE FORGOT ABOUT tty/color.h!
|
|
|
|
* Use skin engine for getting needed color pairs.
|
|
|
|
*
|
|
|
|
* edit/syntax.c may use this file directly, I'm agree. :)
|
|
|
|
*
|
2009-02-05 21:28:18 +03:00
|
|
|
*/
|
|
|
|
|
2004-12-03 22:17:46 +03:00
|
|
|
#ifndef MC_COLOR_H
|
|
|
|
#define MC_COLOR_H
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2010-01-20 18:11:52 +03:00
|
|
|
#include "lib/global.h" /* glib.h */
|
2009-05-14 19:18:03 +04:00
|
|
|
|
2001-09-03 08:32:16 +04:00
|
|
|
#ifdef HAVE_SLANG
|
2010-01-07 02:57:27 +03:00
|
|
|
# include "color-slang.h"
|
1998-02-27 07:54:42 +03:00
|
|
|
#else
|
2010-01-07 02:57:27 +03:00
|
|
|
# include "tty-ncurses.h"
|
1998-02-27 07:54:42 +03:00
|
|
|
#endif
|
|
|
|
|
2010-02-15 14:21:30 +03:00
|
|
|
/* colors specified on the command line: they override any other setting */
|
2009-09-04 18:22:49 +04:00
|
|
|
extern char *command_line_colors;
|
2004-09-02 02:33:43 +04:00
|
|
|
|
2009-07-08 22:37:01 +04:00
|
|
|
void tty_init_colors (gboolean disable, gboolean force);
|
2009-05-14 19:18:03 +04:00
|
|
|
void tty_colors_done (void);
|
2009-09-04 18:22:49 +04:00
|
|
|
|
2009-05-14 19:18:03 +04:00
|
|
|
gboolean tty_use_colors (void);
|
2009-09-04 18:22:49 +04:00
|
|
|
int tty_try_alloc_color_pair (const char *, const char *);
|
2009-09-10 16:14:18 +04:00
|
|
|
int tty_try_alloc_color_pair2 (const char *, const char *, gboolean);
|
|
|
|
|
2009-09-14 17:43:03 +04:00
|
|
|
void tty_color_free_all_tmp (void);
|
|
|
|
void tty_color_free_all_non_tmp (void);
|
2009-09-10 16:14:18 +04:00
|
|
|
|
2009-05-14 19:18:03 +04:00
|
|
|
void tty_setcolor (int color);
|
|
|
|
void tty_lowlevel_setcolor (int color);
|
2009-06-02 08:55:07 +04:00
|
|
|
void tty_set_normal_attrs (void);
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2009-09-14 17:43:03 +04:00
|
|
|
void tty_color_set_defaults (const char *, const char *);
|
2009-09-10 16:14:18 +04:00
|
|
|
|
2009-09-04 18:22:49 +04:00
|
|
|
#define ALLOC_COLOR_PAIR_INDEX 1
|
|
|
|
|
2009-09-17 02:07:04 +04:00
|
|
|
#endif /* MC_COLOR_H */
|