Changeset View
Changeset View
Standalone View
Standalone View
src/CharacterColor.h
Show All 37 Lines | |||||
38 | // Attributed Character Representations /////////////////////////////// | 38 | // Attributed Character Representations /////////////////////////////// | ||
39 | 39 | | |||
40 | // Colors | 40 | // Colors | ||
41 | 41 | | |||
42 | #define BASE_COLORS (2+8) | 42 | #define BASE_COLORS (2+8) | ||
43 | #define INTENSITIES 3 | 43 | #define INTENSITIES 3 | ||
44 | #define TABLE_COLORS (INTENSITIES*BASE_COLORS) | 44 | #define TABLE_COLORS (INTENSITIES*BASE_COLORS) | ||
45 | 45 | | |||
46 | enum ColorTableIndex { | ||||
47 | ColorFgIndex, | ||||
48 | ColorBgIndex, | ||||
49 | Color0Index, | ||||
50 | Color1Index, | ||||
51 | Color2Index, | ||||
52 | Color3Index, | ||||
53 | Color4Index, | ||||
54 | Color5Index, | ||||
55 | Color6Index, | ||||
56 | Color7Index, | ||||
57 | | ||||
58 | ColorFgIntenseIndex, | ||||
59 | ColorBgIntenseIndex, | ||||
60 | Color0IntenseIndex, | ||||
61 | Color1IntenseIndex, | ||||
62 | Color2IntenseIndex, | ||||
63 | Color3IntenseIndex, | ||||
64 | Color4IntenseIndex, | ||||
65 | Color5IntenseIndex, | ||||
66 | Color6IntenseIndex, | ||||
67 | Color7IntenseIndex, | ||||
68 | | ||||
69 | ColorFgFaintIndex, | ||||
70 | ColorBgFaintIndex, | ||||
71 | Color0FaintIndex, | ||||
72 | Color1FaintIndex, | ||||
73 | Color2FaintIndex, | ||||
74 | Color3FaintIndex, | ||||
75 | Color4FaintIndex, | ||||
76 | Color5FaintIndex, | ||||
77 | Color6FaintIndex, | ||||
78 | Color7FaintIndex, | ||||
79 | }; | ||||
80 | | ||||
46 | #define DEFAULT_FORE_COLOR 0 | 81 | #define DEFAULT_FORE_COLOR 0 | ||
47 | #define DEFAULT_BACK_COLOR 1 | 82 | #define DEFAULT_BACK_COLOR 1 | ||
48 | 83 | | |||
49 | /* CharacterColor is a union of the various color spaces. | 84 | /* CharacterColor is a union of the various color spaces. | ||
50 | 85 | | |||
51 | Assignment is as follows: | 86 | Assignment is as follows: | ||
52 | 87 | | |||
53 | Type - Space - Values | 88 | Type - Space - Values | ||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |