Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Definition at line 107 of file cmd_eval.c.
References key, list(), rz_list_append(), and strdup().
Referenced by rz_core_theme_list().
|
static |
Definition at line 91 of file cmd_eval.c.
References files, fn, path, rz_list_free(), and rz_sys_dir().
Referenced by rz_core_theme_list().
Definition at line 9 of file cmd_eval.c.
References rz_core_t::cmdfilter, NULL, path, rz_cons_pal_update_event(), rz_core_cmd_file(), and rz_file_exists().
Referenced by rz_core_theme_load().
|
static |
Definition at line 22 of file cmd_eval.c.
References rz_core_t::curtheme, file, fn, free(), NULL, RZ_CONS_PAL_SEEK_NEXT, RZ_CONS_PAL_SEEK_PREVIOUS, rz_str_lchr(), and strdup().
Referenced by rz_core_theme_nextpal().
RZ_IPI RzCmdStatus rz_cmd_eval_color_display_palette_css_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 197 of file cmd_eval.c.
References argv, RZ_CMD_STATUS_OK, and rz_cons_pal_list().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_current_instruction_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 285 of file cmd_eval.c.
References rz_core_t::analysis, argv, dup, eprintf, NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_pal_parse(), rz_cons_singleton(), RZ_FREE, rz_meta_get_string(), rz_meta_set_string(), RZ_META_TYPE_HIGHLIGHT, rz_str_newf(), and cmd_descs_generate::str.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_instruction_word_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 302 of file cmd_eval.c.
References rz_core_t::analysis, argv, dup, eprintf, NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_pal_parse(), rz_cons_singleton(), RZ_FREE, rz_meta_get_string(), rz_meta_set_string(), RZ_META_TYPE_HIGHLIGHT, rz_str_newf(), and cmd_descs_generate::str.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_list_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 322 of file cmd_eval.c.
References rz_core_t::offset, rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), RZ_CMD_STATUS_OK, rz_core_meta_print_list_in_function(), RZ_META_TYPE_COMMENT, and RZ_OUTPUT_MODE_STANDARD.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 227 of file cmd_eval.c.
References rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), RZ_CMD_STATUS_OK, rz_core_meta_print_list_all(), and RZ_META_TYPE_HIGHLIGHT.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_remove_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 331 of file cmd_eval.c.
References rz_core_t::analysis, RZ_CMD_STATUS_OK, rz_meta_del(), RZ_META_TYPE_HIGHLIGHT, and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_highlight_remove_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 336 of file cmd_eval.c.
References rz_core_t::analysis, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_meta_del(), and RZ_META_TYPE_HIGHLIGHT.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_list_current_theme_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 275 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, rz_cons_println(), and rz_core_theme_get().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 167 of file cmd_eval.c.
References argv, color, Color_RESET, eprintf, NULL, rcolor, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_pal_get(), rz_cons_pal_list(), rz_cons_pal_set(), rz_cons_pal_update_event(), rz_cons_rgb_str(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, and RZ_OUTPUT_MODE_STANDARD.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_list_reload_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 280 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, rz_core_theme_get(), and rz_core_theme_load().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_load_next_theme_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 222 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, RZ_CONS_PAL_SEEK_NEXT, and rz_core_theme_nextpal().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_load_previous_theme_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 217 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, RZ_CONS_PAL_SEEK_PREVIOUS, and rz_core_theme_nextpal().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_load_theme_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 236 of file cmd_eval.c.
References argv, bool2status(), rz_core_t::curtheme, NULL, pj_a(), pj_end(), pj_s(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_theme_list(), rz_core_theme_load(), rz_list_free(), RZ_OUTPUT_MODE_JSON, and RZ_OUTPUT_MODE_QUIET.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_set_colorful_palette_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 212 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, and rz_cons_pal_show().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_set_default_palette_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 202 of file cmd_eval.c.
References rz_core_t::cons, rz_cons_t::context, RZ_CMD_STATUS_OK, and rz_cons_pal_init().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_eval_color_set_random_palette_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 207 of file cmd_eval.c.
References RZ_CMD_STATUS_OK, and rz_cons_pal_random().
Referenced by rzshell_cmddescs_init().
Definition at line 103 of file cmd_eval.c.
References rz_core_t::curtheme.
Referenced by cb_scrrainbow(), rz_cmd_eval_color_list_current_theme_handler(), rz_cmd_eval_color_list_reload_current_handler(), and rz_core_visual_colors().
RZ_API RZ_OWN RzList* rz_core_theme_list | ( | RZ_NONNULL RzCore * | core | ) |
Returns the list of the rizin themes.
core | The RzCore struct to use |
Definition at line 119 of file cmd_eval.c.
References dict2keylist(), free(), list(), list_themes_in_path(), NULL, path, RZ_FREE, rz_list_append(), rz_list_newf(), rz_list_sort(), rz_path_home_prefix(), rz_path_system(), rz_return_val_if_fail, RZ_THEMES, and strdup().
Referenced by __load_config_menu(), autocomplete_theme(), rz_cmd_eval_color_load_theme_handler(), and rz_core_theme_nextpal().
Definition at line 56 of file cmd_eval.c.
References rz_core_t::cons, rz_cons_t::context, rz_core_t::curtheme, eprintf, free(), load_theme(), rz_cons_pal_init(), rz_file_path_join(), rz_path_home_prefix(), rz_path_system(), rz_str_cmp(), rz_str_dup(), and RZ_THEMES.
Referenced by __settings_colors_cb(), cb_scrrainbow(), rz_cmd_eval_color_list_reload_current_handler(), rz_cmd_eval_color_load_theme_handler(), and rz_core_theme_nextpal().
RZ_API void rz_core_theme_nextpal | ( | RzCore * | core, |
RzConsPalSeekMode | mode | ||
) |
Definition at line 148 of file cmd_eval.c.
References rz_core_t::curtheme, done, files, fn, NULL, pal_seek(), rz_core_theme_list(), rz_core_theme_load(), and rz_list_free().
Referenced by __panels_process(), rz_cmd_eval_color_load_next_theme_handler(), rz_cmd_eval_color_load_previous_theme_handler(), rz_core_visual_analysis(), rz_core_visual_bit_editor(), rz_core_visual_cmd(), rz_core_visual_colors(), and rz_core_visual_graph().
RZ_IPI RzCmdStatus rz_eval_bool_invert_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 392 of file cmd_eval.c.
References argv, rz_core_t::config, eprintf, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_config_toggle().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_editor_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 400 of file cmd_eval.c.
References argv, rz_core_t::config, eprintf, NULL, p, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get(), rz_config_set(), rz_core_editor(), rz_str_replace_char(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_getset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 341 of file cmd_eval.c.
References argv, rz_core_t::config, eprintf, i, key, rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get(), rz_config_set(), rz_cons_printf(), rz_core_config_print_all(), rz_list_free(), rz_list_get_n(), rz_list_length(), RZ_OUTPUT_MODE_QUIET, rz_str_endswith(), RZ_STR_ISEMPTY, rz_str_split_duplist_n(), v, and value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 382 of file cmd_eval.c.
References argv, rz_core_t::config, RZ_CMD_STATUS_OK, and rz_core_config_print_all().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_readonly_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 415 of file cmd_eval.c.
References argv, rz_core_t::config, eprintf, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_config_readonly().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_reset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 388 of file cmd_eval.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_config_init().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_spaces_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 423 of file cmd_eval.c.
References argv, list(), name, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_config_in_space(), and rz_list_free().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_eval_type_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 438 of file cmd_eval.c.
References argv, rz_core_t::config, eprintf, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_node_get(), rz_config_node_type(), rz_cons_println(), and type.
Referenced by rzshell_cmddescs_init().