+struct cell_color
+ {
+ uint8_t r, g, b;
+ };
+
+#define CELL_COLOR(r, g, b) (struct cell_color) { r, g, b }
+#define CELL_COLOR_BLACK CELL_COLOR (0, 0, 0)
+#define CELL_COLOR_WHITE CELL_COLOR (255, 255, 255)
+
+static inline bool
+cell_color_equal (const struct cell_color *a, const struct cell_color *b)
+{
+ return a->r == b->r && a->g == b->g && a->b == b->b;
+}
+
+struct cell_style
+ {
+ struct cell_color fg, bg;
+ };
+