README: mention SDL2 backend
[rofl0r-concol.git] / color_reader.h
blobebf828404084b2b1a43b7377045474d4450c58be
1 #ifndef COLOR_READER_H
2 #define COLOR_READER_H
4 #include <termios.h>
5 #include "rgb.h"
7 /* code to read *actual* colors from terminal.
8 this is not possible with ncurses
9 (color_content() returns impl.-defined default colors).
10 all functions return 0 on success, and non-0 on failure. */
12 struct color_reader {
13 int fd;
14 struct termios t;
17 int color_reader_init(struct color_reader *cr);
18 int color_reader_get_color(struct color_reader *cr, int colnr, rgb_t*out);
19 int color_reader_close(struct color_reader *cr);
21 #pragma RcB2 DEP "color_reader.c"
23 #endif