Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | I(x) rz_cons_singleton()->x |
#define | HUD_CACHE 0 |
Functions | |
RZ_API char * | rz_cons_hud_file (const char *f) |
RZ_API char * | rz_cons_hud_string (const char *s) |
static bool | __matchString (char *entry, char *filter, char *mask, const int mask_size) |
static RzList * | hud_filter (RzList *list, char *user_input, int top_entry_n, int *current_entry_n, char **selected_entry) |
static void | mht_free_kv (HtPPKv *kv) |
RZ_API char * | rz_cons_hud (RzList *list, const char *prompt) |
RZ_API char * | rz_cons_hud_path (const char *path, int dir) |
RZ_API void | rz_cons_message (RZ_NONNULL const char *msg) |
#define I | ( | x | ) | rz_cons_singleton()->x |
Definition at line 64 of file hud.c.
References filter(), free(), mask, NULL, p, rz_str_ansi_filter(), rz_str_casestr(), and strdup().
Referenced by hud_filter().
|
static |
Definition at line 112 of file hud.c.
References __matchString(), Color_GREEN, Color_RESET, counter, free(), HUD_BUF_SIZE, I, list(), mask, memset(), p, rz_cons_get_size(), rz_list_append(), rz_list_newf(), rz_str_appendf(), rz_str_newf(), cmd_descs_generate::str, strdup(), autogen_x86imm::tmp, toupper, and x.
Referenced by rz_cons_hud().
|
static |
Definition at line 194 of file hud.c.
References free(), and rz_list_free().
Referenced by rz_cons_hud().
Definition at line 202 of file hud.c.
References rz_hud_t::activate, rz_hud_t::current_entry_n, found, HUD_BUF_SIZE, hud_filter(), I, rz_list_t::length, setup::line, list(), mht_free_kv(), NULL, printf(), prompt(), rz_cons_clear(), RZ_CONS_CLEAR_LINE, rz_cons_enable_mouse(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), RZ_FREE, rz_line_readline(), rz_list_free(), RZ_NEW, rz_str_ncpy(), strdup(), rz_hud_t::top_entry_n, and rz_hud_t::vi.
Referenced by rz_cons_hud_path(), rz_cons_hud_string(), rz_core_visual_config_hud(), rz_core_visual_hudclasses(), and rz_core_visual_hudstuff().
Definition at line 10 of file hud.c.
References f, free(), NULL, rz_cons_hud_string(), rz_file_slurp(), and s.
Referenced by rz_core_visual_hud(), and rz_core_yank_hud_file().
Definition at line 285 of file hud.c.
References eprintf, files, free(), NULL, path, rz_cons_hud(), rz_file_abspath(), rz_file_is_directory(), rz_list_free(), rz_str_append(), rz_str_trim_head_ro(), rz_sys_dir(), strdup(), and autogen_x86imm::tmp.
Referenced by rz_core_yank_hud_path().
Definition at line 22 of file hud.c.
References eprintf, rz_list_t::free, free(), i, NULL, rz_cons_hud(), rz_cons_is_interactive(), rz_list_append(), rz_list_free(), rz_list_new(), rz_str_replace_ch(), s, and strdup().
Referenced by rz_cons_grepbuf(), rz_cons_hud_file(), and rz_cons_less_str().
RZ_API void rz_cons_message | ( | RZ_NONNULL const char * | msg | ) |
Definition at line 321 of file hud.c.
References len, msg, NULL, rz_cons_any_key(), rz_cons_clear(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_println(), and rz_return_if_fail.
Referenced by __check_func(), __fortune_cb(), __license_cb(), __version_cb(), agraph_refresh(), rz_cmd_help(), rz_core_visual_analysis_classes(), rz_core_visual_classes(), rz_core_visual_cmd(), and rz_core_visual_hud().