Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_cons.h>
Go to the source code of this file.
Macros | |
#define | SETRGB(x, y, z) |
Functions | |
static void | init_color_table (void) |
static int | __lookup_rgb (int r, int g, int b) |
static ut32 | __approximate_rgb (int r, int g, int b) |
static int | rgb (int r, int g, int b) |
static void | __unrgb (int color, int *r, int *g, int *b) |
RZ_API void | rz_cons_rgb_init (void) |
RZ_API int | rz_cons_rgb_parse (const char *p, ut8 *r, ut8 *g, ut8 *b, ut8 *a) |
RZ_API char * | rz_cons_rgb_str_off (char *outstr, size_t sz, ut64 off) |
static void | rz_cons_rgb_gen (RzConsColorMode mode, char *outstr, size_t sz, ut8 attr, ut8 a, ut8 r, ut8 g, ut8 b, st8 id16) |
RZ_API char * | rz_cons_rgb_str_mode (RzConsColorMode mode, char *outstr, size_t sz, const RzColor *rcolor) |
RZ_API char * | rz_cons_rgb_str (char *outstr, size_t sz, const RzColor *rcolor) |
RZ_API char * | rz_cons_rgb_tostring (ut8 r, ut8 g, ut8 b) |
Variables | |
int | color_table [256] = { 0 } |
int | value_range [6] = { 0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff } |
Definition at line 95 of file rgb.c.
References b, color, color_table, g, r, and rgb().
Referenced by rz_cons_rgb_parse().
|
static |
Definition at line 12 of file rgb.c.
References b, color_table, g, i, r, and value_range.
Referenced by rz_cons_rgb_init().
Definition at line 87 of file rgb.c.
References __approximate_rgb(), __lookup_rgb(), b, c, g, and r.
Referenced by __cons_pal_update_event(), __unrgb(), and rz_cons_rgb_gen().
|
static |
Definition at line 219 of file rgb.c.
References a, ALPHA_BG, b, c, COLOR_MODE_16, COLOR_MODE_16M, COLOR_MODE_256, g, i, k, r, rgb(), RZ_CONS_ATTR_BLINK, RZ_CONS_ATTR_BOLD, RZ_CONS_ATTR_DIM, RZ_CONS_ATTR_ITALIC, RZ_CONS_ATTR_UNDERLINE, and snprintf.
Referenced by rz_cons_rgb_str_mode().
RZ_API void rz_cons_rgb_init | ( | void | ) |
Definition at line 106 of file rgb.c.
References color_table, and init_color_table().
Referenced by rz_cons_new().
Definition at line 318 of file rgb.c.
References rcolor, rz_cons_rgb_str_mode(), and rz_cons_singleton().
Referenced by rz_cmd_eval_color_list_handler(), rz_cons_pal_parse(), rz_cons_pal_show_256(), rz_cons_pal_show_gs(), rz_cons_pal_show_rgb(), rz_cons_rgb_str_off(), and rz_core_visual_colors().
RZ_API char* rz_cons_rgb_str_mode | ( | RzConsColorMode | mode, |
char * | outstr, | ||
size_t | sz, | ||
const RzColor * | rcolor | ||
) |
Definition at line 292 of file rgb.c.
References rcolor_t::a, ALPHA_BG, ALPHA_FGBG, ALPHA_RESET, rcolor_t::attr, rcolor_t::b, rcolor_t::b2, calloc(), Color_RESET, rcolor_t::g, rcolor_t::g2, rcolor_t::id16, len, NULL, rcolor_t::r, rcolor_t::r2, rcolor, and rz_cons_rgb_gen().
Referenced by __cons_pal_update_event(), and rz_cons_rgb_str().
Definition at line 209 of file rgb.c.
References rcolor_t::b, rcolor_t::g, rcolor_t::id16, off, rcolor_t::r, rz_cons_rgb_str(), and RzColor_BLACK.
Referenced by rz_cons_new(), and rz_print_offset_sg().
Definition at line 322 of file rgb.c.
References b, g, NULL, r, rz_str_newf(), cmd_descs_generate::str, and strdup().
Referenced by palColorFor(), and rz_core_meta_print().
int color_table[256] = { 0 } |
Definition at line 9 of file rgb.c.
Referenced by __lookup_rgb(), __unrgb(), init_color_table(), and rz_cons_rgb_init().
int value_range[6] = { 0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff } |
Definition at line 10 of file rgb.c.
Referenced by init_color_table().