* Create help for explaining how encrypted password file support
[alpine.git] / pith / color.h
blobb90d82cfcec5bd9b153a9f7853a64ebdde701f13
1 /*
2 * $Id: color.h 768 2007-10-24 00:10:03Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_COLOR_INCLUDED
17 #define PITH_COLOR_INCLUDED
20 #include "../pith/filttype.h"
21 #include "../pith/pattern.h"
22 #include "../pith/osdep/color.h"
25 typedef struct spec_color_s {
26 int inherit; /* this isn't a color, it is INHERIT */
27 char *spec;
28 char *fg;
29 char *bg;
30 PATTERN_S *val;
31 struct spec_color_s *next;
32 } SPEC_COLOR_S;
36 * These are default colors that you'll get when you turn
37 * color on. The way color works is that the closest possible
38 * RGB value is chosen so these colors will produce different
39 * results in the different color models (the 8-color, 16-color,
40 * xterm 256-color, and PC-Alpine color).
41 * See init_color_table() for the RGB values we use.
42 * The 8-color model uses the 8 0 or 255 possibilities. So,
43 * for example, if the default color is "000,217,217" the
44 * closes 8-color version of that is going to be "000,255,255".
45 * In the 16-color terminal we use 000, 174, and 255 as the
46 * possible values. That means that a default value
47 * of "000,214,000" maps to "000,174,000" (a dull green)
48 * but "000,215,000" maps to "000,255,000" (a bright green).
50 * The colors which don't have defaults map to either the current
51 * setting of the Normal color or the current setting of the
52 * Reverse color, depending on what we thought was right long ago.
54 #define DEFAULT_TITLE_FORE_RGB "000,000,000"
55 #define DEFAULT_TITLE_BACK_RGB "255,255,000"
56 #define DEFAULT_TITLECLOSED_FORE_RGB "255,255,255"
57 #define DEFAULT_TITLECLOSED_BACK_RGB "255,000,000"
58 #define DEFAULT_METAMSG_FORE_RGB "000,000,000"
59 #define DEFAULT_METAMSG_BACK_RGB "255,255,000"
60 #define DEFAULT_QUOTE1_FORE_RGB "000,000,000"
61 #define DEFAULT_QUOTE1_BACK_RGB "000,217,217"
62 #define DEFAULT_QUOTE2_FORE_RGB "000,000,000"
63 #define DEFAULT_QUOTE2_BACK_RGB "204,214,000"
64 #define DEFAULT_QUOTE3_FORE_RGB "000,000,000"
65 #define DEFAULT_QUOTE3_BACK_RGB "000,214,000"
66 #define DEFAULT_SIGNATURE_FORE_RGB "000,000,255"
67 #define DEFAULT_SIGNATURE_BACK_RGB "255,255,255"
68 #define DEFAULT_IND_PLUS_FORE_RGB "000,000,000"
69 #define DEFAULT_IND_PLUS_BACK_RGB "000,174,174"
70 #define DEFAULT_IND_IMP_FORE_RGB "240,240,240"
71 #define DEFAULT_IND_IMP_BACK_RGB "174,000,000"
72 #define DEFAULT_IND_ANS_FORE_RGB "255,000,000"
73 #define DEFAULT_IND_ANS_BACK_RGB "174,174,000"
74 #define DEFAULT_IND_NEW_FORE_RGB "240,240,240"
75 #define DEFAULT_IND_NEW_BACK_RGB "174,000,174"
76 #define DEFAULT_IND_OP_FORE_RGB "192,192,192"
77 #define DEFAULT_IND_OP_BACK_RGB "255,255,255"
80 /* exported protoypes */
81 char *color_embed(char *, char *);
82 int colorcmp(char *, char *);
83 int color_a_quote(long, char *, LT_INS_S **, void *);
84 void free_spec_colors(SPEC_COLOR_S **);
87 #endif /* PITH_COLOR_INCLUDED */