1 /* Color and styling handling.
2 Copyright (C) 2006 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2006.
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
29 /* Whether to output a test page. */
30 extern DLL_VARIABLE bool color_test_mode;
33 enum color_option { color_no, color_tty, color_yes, color_html };
34 extern DLL_VARIABLE enum color_option color_mode;
36 /* Style to use when coloring. */
37 extern DLL_VARIABLE const char *style_file_name;
39 /* --color argument handling. Return an error indicator. */
40 extern bool handle_color_option (const char *option);
42 /* --style argument handling. */
43 extern void handle_style_option (const char *option);
45 /* Print a color test page. */
46 extern void print_color_test (void);
48 /* Assign a default value to style_file_name if necessary. */
49 extern void style_file_prepare (void);