25 #ifndef CHARACTERCOLOR_H
26 #define CHARACTERCOLOR_H
92 #define BASE_COLORS (2+8)
94 #define TABLE_COLORS (INTENSITIES*BASE_COLORS)
96 #define DEFAULT_FORE_COLOR 0
97 #define DEFAULT_BACK_COLOR 1
105 ColorEntry(QColor(0x00,0x00,0x00), 1, 0 ),
ColorEntry( QColor(0xFF,0xFF,0xFF), 0, 0 ),
106 ColorEntry(QColor(0x00,0x00,0x00), 0, 0 ),
ColorEntry( QColor(0xB2,0x18,0x18), 0, 0 ),
107 ColorEntry(QColor(0x18,0xB2,0x18), 0, 0 ),
ColorEntry( QColor(0xB2,0x68,0x18), 0, 0 ),
108 ColorEntry(QColor(0x18,0x18,0xB2), 0, 0 ),
ColorEntry( QColor(0xB2,0x18,0xB2), 0, 0 ),
109 ColorEntry(QColor(0x18,0xB2,0xB2), 0, 0 ),
ColorEntry( QColor(0xB2,0xB2,0xB2), 0, 0 ),
111 ColorEntry(QColor(0x00,0x00,0x00), 0, 1 ),
ColorEntry( QColor(0xFF,0xFF,0xFF), 1, 0 ),
112 ColorEntry(QColor(0x68,0x68,0x68), 0, 0 ),
ColorEntry( QColor(0xFF,0x54,0x54), 0, 0 ),
113 ColorEntry(QColor(0x54,0xFF,0x54), 0, 0 ),
ColorEntry( QColor(0xFF,0xFF,0x54), 0, 0 ),
114 ColorEntry(QColor(0x54,0x54,0xFF), 0, 0 ),
ColorEntry( QColor(0xFF,0x54,0xFF), 0, 0 ),
134 #define COLOR_SPACE_UNDEFINED 0
135 #define COLOR_SPACE_DEFAULT 1
136 #define COLOR_SPACE_SYSTEM 2
137 #define COLOR_SPACE_256 3
138 #define COLOR_SPACE_RGB 4
255 if (u < 8)
return base[u+2 ].
color; u -= 8;
259 if (u < 216)
return QColor(255*((u/36)%6)/5,
261 255*((u/ 1)%6)/5); u -= 216;
264 int gray = u*10+8;
return QColor(gray,gray,gray);
291 #endif // CHARACTERCOLOR_H