ec highlight -> wordhl

This commit is contained in:
Khairul Kasmiran 2018-06-04 19:07:31 +08:00 committed by radare
parent 58e48c8267
commit 2f285d5f90
3 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ static struct {
{ "gui.background", r_offsetof (RConsPrintablePalette, gui_background), r_offsetof (RConsPalette, gui_background) },
{ "gui.alt_background", r_offsetof (RConsPrintablePalette, gui_alt_background), r_offsetof (RConsPalette, gui_alt_background) },
{ "gui.border", r_offsetof (RConsPrintablePalette, gui_border), r_offsetof (RConsPalette, gui_border) },
{ "highlight", r_offsetof (RConsPrintablePalette, highlight), r_offsetof (RConsPalette, highlight) },
{ "wordhl", r_offsetof (RConsPrintablePalette, wordhl), r_offsetof (RConsPalette, wordhl) },
{ "linehl", r_offsetof (RConsPrintablePalette, linehl), r_offsetof (RConsPalette, linehl) },
{ NULL, 0, 0 }
};
@ -159,7 +159,7 @@ R_API void r_cons_pal_init() {
cons->cpal.gui_background = (RColor) RColor_BLACK;
cons->cpal.gui_alt_background = (RColor) RColor_WHITE;
cons->cpal.gui_border = (RColor) RColor_BLACK;
cons->cpal.highlight = (RColor) RColor_BGRED;
cons->cpal.wordhl = (RColor) RColor_BGRED;
cons->cpal.linehl = (RColor) RCOLOR (ALPHA_BG, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00);
cons->cpal.graph_box = (RColor) RColor_NULL;

View File

@ -430,7 +430,7 @@ static int cmd_eval(void *data, const char *input) {
return true;
}
char *str = r_meta_get_string (core->anal, R_META_TYPE_HIGHLIGHT, core->offset);
char *dup = r_str_newf ("%s \"%s%s\"", str?str:"", word?word:"", color_code?color_code:r_cons_singleton ()->pal.highlight);
char *dup = r_str_newf ("%s \"%s%s\"", str?str:"", word?word:"", color_code?color_code:r_cons_singleton ()->pal.wordhl);
r_meta_set_string (core->anal, R_META_TYPE_HIGHLIGHT, core->offset, dup);
r_str_argv_free (argv);
R_FREE (word);

View File

@ -205,7 +205,7 @@ typedef struct r_cons_palette_t {
RColor gui_background;
RColor gui_alt_background;
RColor gui_border;
RColor highlight;
RColor wordhl;
RColor linehl;
/* Graph colors */
@ -270,7 +270,7 @@ typedef struct r_cons_printable_palette_t {
char *gui_background;
char *gui_alt_background;
char *gui_border;
char *highlight;
char *wordhl;
char *linehl;
/* graph colors */