55 gdb_assert (c >= -1 && c <= 255);
58 color (uint8_t r, uint8_t g, uint8_t b)
117 void get_rgb (uint8_t *rgb)
const;
124 bool append_ansi (
bool is_fg, std::string *str)
const;
166 return !(*
this == other);
230 bool parse (
const char *buf,
size_t *n_read);
bool operator==(const color &other) const
bool operator<(const color &other) const
color(uint8_t r, uint8_t g, uint8_t b)
void get_rgb(uint8_t *rgb) const
bool append_ansi(bool is_fg, std::string *str) const
bool operator==(const ui_file_style &other) const
const color & get_foreground() const
bool operator!=(const ui_file_style &other) const
const color & get_background() const
ui_file_style(color f, color b, intensity i=NORMAL)
intensity get_intensity() const
const ui_file_style * ptr() const
bool parse(const char *buf, size_t *n_read)
void set_reverse(bool reverse)
std::string to_ansi() const
bool skip_ansi_escape(const char *buf, int *n_read)