Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_cons.h>
#include <rz_util.h>
#include <rz_util/rz_print.h>
#include <rz_windows.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
Go to the source code of this file.
Classes | |
struct | RzConsStack |
struct | RzConsBreakStack |
Macros | |
#define | COUNT_LINES 1 |
#define | CTX(x) I.context->x |
#define | I rz_cons_instance |
#define | MOAR (4096 * 8) |
Variables | |
static RzConsContext | rz_cons_context_default = { { { { 0 } } } } |
static RzCons | rz_cons_instance = { 0 } |
static bool | lasti = false |
#define I rz_cons_instance |
|
static |
Definition at line 146 of file cons.c.
References rz_cons_context_break(), and rz_cons_context_default.
Referenced by rz_cons_context_break_push().
Definition at line 169 of file cons.c.
References __cons_write_ll(), i, and obuf.
Referenced by rz_cons_flush(), and rz_cons_visual_write().
Definition at line 150 of file cons.c.
References I, len, RZ_VIRT_TERM_MODE_DISABLE, and rz_xwrite.
Referenced by __cons_write().
|
static |
Definition at line 47 of file cons.c.
Referenced by cons_context_init(), rz_cons_break_end(), and rz_cons_context_break_pop().
|
static |
Definition at line 138 of file cons.c.
References NULL, rz_cons_pal_free(), and rz_stack_free().
Referenced by rz_cons_context_free(), and rz_cons_free().
|
static |
Definition at line 111 of file cons.c.
References break_stack_free(), context::buffer, COLOR_MODE_DISABLED, cons_grep_reset(), cons_stack_free(), NULL, RZ_CONS_CMD_DEPTH, rz_cons_pal_copy(), rz_cons_pal_init(), and rz_stack_newf().
Referenced by rz_cons_context_new(), and rz_cons_new().
|
static |
Definition at line 796 of file cons.c.
References rz_cons_grep_t::line, RZ_FREE, rz_cons_grep_t::sort, rz_cons_grep_t::sort_invert, rz_cons_grep_t::str, and ZERO_FILL.
Referenced by cons_context_init(), and rz_cons_reset().
|
static |
Definition at line 63 of file cons.c.
References RzConsStack::buf, RzConsStack::buf_len, RzConsStack::buf_size, CTX, ctx_rowcol_calc_reset(), free(), RzConsStack::grep, malloc(), memcpy(), RzConsStack::noflush, NULL, RZ_NEW0, cmd_descs_generate::str, rz_cons_grep_t::str, and strdup().
Referenced by rz_cons_push().
|
static |
Definition at line 52 of file cons.c.
References CTX, free(), NULL, RZ_FREE, and s.
Referenced by cons_context_init(), and rz_cons_pop().
|
static |
Definition at line 94 of file cons.c.
References RzConsStack::buf, RzConsStack::buf_len, RzConsStack::buf_size, CTX, ctx_rowcol_calc_reset(), free(), RzConsStack::grep, memcpy(), RzConsStack::noflush, NULL, rz_return_if_fail, and cmd_descs_generate::str.
Referenced by rz_cons_pop().
|
static |
Definition at line 41 of file cons.c.
References CTX.
Referenced by cons_stack_dump(), cons_stack_load(), rz_cons_filter(), rz_cons_highlight(), and rz_cons_reset().
|
static |
Definition at line 685 of file cons.c.
References calloc(), CTX, INT_MAX, MOAR, new_buffer(), and realloc().
Referenced by rz_cons_memcat(), rz_cons_memset(), and rz_cons_printf_list().
Definition at line 1087 of file cons.c.
References len, rz_str_ansi_len(), and rz_str_len_utf8().
Referenced by rz_cons_visual_write().
void resizeWin | ( | void | ) |
RZ_API void rz_cons_bind | ( | RzConsBind * | bind | ) |
Definition at line 1910 of file cons.c.
References bind, rz_cons_flush(), rz_cons_get_cursor(), rz_cons_get_size(), rz_cons_grep(), rz_cons_is_breaked(), and rz_cons_printf().
Referenced by rz_core_init().
RZ_API void rz_cons_break_clear | ( | void | ) |
RZ_API void rz_cons_break_end | ( | void | ) |
Definition at line 427 of file cons.c.
References break_stack_free(), breaked, CTX, I, NULL, rz_stack_free(), rz_stack_is_empty(), rz_stack_newf(), and rz_sys_signal().
Referenced by set_layout().
RZ_API void rz_cons_break_pop | ( | void | ) |
Definition at line 361 of file cons.c.
References I, and rz_cons_context_break_pop().
Referenced by __read(), _analysis_calls(), agraph_print_edges(), cmd_dcu(), cmd_search_bin(), core_perform_auto_analysis(), debug_trace_calls(), DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_analysis_search(), do_asm_search(), do_esil_search(), do_section_search(), do_string_search(), do_syscall_search(), draw_horizontal_line(), draw_vertical_line(), gdbr_connect(), gdbr_lock_leave(), lang_pipe_run(), linux_dbg_wait(), macro_call(), print_cmd_analysis_after_traps_print(), rtr_visual(), rtti_msvc_read_base_class_array(), rz_analysis_class_recover_from_rzbin(), rz_analysis_reflines_get(), rz_analysis_rtti_print_all(), rz_analysis_rtti_recover_all(), rz_analysis_vtable_search(), rz_cmd_debug(), rz_cmd_debug_continue_back_handler(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_execution_handler(), rz_cmd_debug_continue_fork_handler(), rz_cmd_debug_continue_mapped_io_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_traptrace_handler(), rz_cmd_debug_continue_unknown_call_handler(), rz_cmd_debug_continue_until(), rz_cmd_debug_step_cond_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_print(), rz_cmd_search(), rz_cmd_sizes_of_n_instructions_handler(), rz_cons_canvas_write(), rz_cons_flush(), rz_core_analysis_all(), rz_core_analysis_calls(), rz_core_analysis_cycles(), rz_core_analysis_esil(), rz_core_analysis_search(), rz_core_analysis_search_xrefs(), rz_core_analysis_type_match(), rz_core_analysis_value_pointers(), rz_core_asm_strsearch(), rz_core_bin_apply_strings(), rz_core_bin_print_source_line_info(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_subst(), rz_core_cmd_subst_i(), rz_core_debug_continue(), rz_core_debug_continue_until(), rz_core_debug_single_step_over(), rz_core_debug_step_until_frame(), rz_core_disasm_pdi_with_buf(), rz_core_dump(), rz_core_esil_step(), rz_core_link_stroff(), rz_core_print_disasm(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), rz_core_rtr_cmds(), rz_core_rtr_http_run(), rz_core_search_rop(), rz_core_search_value_in_range(), rz_core_serve(), rz_core_visual_define(), rz_core_visual_graph(), rz_debug_bochs_wait(), rz_debug_continue_kill(), rz_debug_esil_step(), rz_line_readline_cb(), search_collisions(), search_hash(), search_similar_pattern(), set_layout(), step_until(), step_until_esil(), step_until_flag(), step_until_inst(), step_until_optype(), type_match(), update_graph_sizes(), w32_dbg_wait(), windbg_wait(), winkd_lock_enter(), and winkd_lock_leave().
RZ_API void rz_cons_break_push | ( | RzConsBreak | cb, |
void * | user | ||
) |
Definition at line 357 of file cons.c.
References cb, I, and rz_cons_context_break_push().
Referenced by __read(), _analysis_calls(), cmd_dcu(), cmd_search_bin(), core_perform_auto_analysis(), debug_trace_calls(), DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_analysis_search(), do_asm_search(), do_esil_search(), do_section_search(), do_string_search(), do_syscall_search(), draw_horizontal_line(), draw_vertical_line(), gdbr_connect(), gdbr_lock_enter(), gdbr_lock_tryenter(), lang_pipe_run(), linux_dbg_wait(), macro_call(), print_cmd_analysis_after_traps_print(), rtr_visual(), rtti_msvc_read_base_class_array(), rz_analysis_class_recover_from_rzbin(), rz_analysis_reflines_get(), rz_analysis_rtti_print_all(), rz_analysis_rtti_recover_all(), rz_analysis_vtable_search(), rz_cmd_debug(), rz_cmd_debug_continue_back_handler(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_execution_handler(), rz_cmd_debug_continue_fork_handler(), rz_cmd_debug_continue_mapped_io_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_traptrace_handler(), rz_cmd_debug_continue_unknown_call_handler(), rz_cmd_debug_continue_until(), rz_cmd_debug_step_cond_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_print(), rz_cmd_search(), rz_cmd_sizes_of_n_instructions_handler(), rz_cons_canvas_write(), rz_cons_flush(), rz_core_analysis_all(), rz_core_analysis_calls(), rz_core_analysis_cycles(), rz_core_analysis_esil(), rz_core_analysis_search(), rz_core_analysis_search_xrefs(), rz_core_analysis_type_match(), rz_core_analysis_value_pointers(), rz_core_asm_strsearch(), rz_core_bin_apply_strings(), rz_core_bin_print_source_line_info(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_subst(), rz_core_cmd_subst_i(), rz_core_debug_continue(), rz_core_debug_continue_until(), rz_core_debug_single_step_over(), rz_core_debug_step_until_frame(), rz_core_disasm_pdi_with_buf(), rz_core_dump(), rz_core_esil_step(), rz_core_link_stroff(), rz_core_print_disasm(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), rz_core_rtr_cmds(), rz_core_rtr_http_run(), rz_core_search_rop(), rz_core_search_value_in_range(), rz_core_serve(), rz_core_visual_define(), rz_core_visual_graph(), rz_debug_bochs_wait(), rz_debug_esil_step(), rz_line_readline_cb(), search_collisions(), search_hash(), search_similar_pattern(), step_until(), step_until_esil(), step_until_flag(), step_until_inst(), step_until_optype(), type_match(), w32_dbg_wait(), windbg_wait(), and winkd_lock_enter().
Definition at line 421 of file cons.c.
References I, rz_time_now_mono(), timeout, and ut64().
Referenced by core_perform_auto_analysis().
RZ_API void rz_cons_breakword | ( | RZ_NULLABLE const char * | s | ) |
RZ_API void rz_cons_chop | ( | void | ) |
Definition at line 1900 of file cons.c.
References CTX, and IS_WHITESPACE.
Referenced by print_fcn_arg().
RZ_API void rz_cons_clear | ( | void | ) |
Definition at line 787 of file cons.c.
References Color_RESET, I, RZ_CONS_CLEAR_SCREEN, and rz_cons_strcat().
Referenced by rz_cons_clear00(), rz_cons_hud(), rz_cons_message(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_hud(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_diff_draw_tui(), rz_diff_hex_visual(), and visual_refresh().
RZ_API void rz_cons_clear00 | ( | void | ) |
Definition at line 778 of file cons.c.
References rz_cons_clear(), and rz_cons_gotoxy().
Referenced by __core_visual_view_graph_update(), agraph_print(), nextword(), pager_printpage(), readline_callback(), rtr_visual(), rz_cmd_shell_clear_handler(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_analysis_refresh(), rz_core_visual_bit_editor(), rz_core_visual_browse(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_debugtraces_help(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_prompt(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), visual_help(), and visual_search().
RZ_API void rz_cons_clear_buffer | ( | void | ) |
Definition at line 756 of file cons.c.
References I, memset(), RZ_CONS_CLEAR_LINE, and RZ_VIRT_TERM_MODE_DISABLE.
Referenced by __core_analysis_fcn(), __print_prompt(), core_perform_auto_analysis(), do_esil_search(), do_string_search(), goto_asmqjmps(), loganalysis(), print_rline_task(), rz_analyze_cycles_handler(), rz_cmd_analysis(), rz_cmd_search(), rz_core_analysis_cycles(), rz_core_magic_at(), rz_line_readline_cb(), and visual_prompt().
Definition at line 1954 of file cons.c.
References rz_cons_printable_palette_t::args, rz_cons_t::context, cmd_descs_generate::help, rz_cons_printable_palette_t::help, i, rz_cons_printable_palette_t::input, rz_cons_context_t::pal, rz_cons_printable_palette_t::reset, rz_cons_printf(), rz_cons_singleton(), and RZ_MAX.
Referenced by rz_cons_grep_help(), and rz_core_cmd_help().
Definition at line 183 of file cons.c.
References rcolor_t::a, rcolor_t::attr, rcolor_t::b, COLOR_MODE_16, CTX, rcolor_t::g, r, rcolor_t::r, rcolor, RZ_CONS_ATTR_BOLD, rz_num_rand(), RzColor_BLUE, RzColor_CYAN, RzColor_GRAY, RzColor_GREEN, RzColor_MAGENTA, RzColor_RED, RzColor_WHITE, and RzColor_YELLOW.
Referenced by rz_cons_pal_parse(), and rz_cons_pal_random().
Definition at line 1707 of file cons.c.
References b, c, CTX, free(), malloc(), memcpy(), rz_cons_gotoxy(), rz_cons_reset(), and rz_cons_strcat_justify().
Referenced by rz_cmd_help(), rz_core_visual_analysis_refresh(), and visual_refresh().
RZ_API void rz_cons_context_break | ( | RzConsContext * | context | ) |
Definition at line 917 of file cons.c.
References rz_cons_context_default.
Referenced by __break_signal(), and rz_core_task_break_cb().
RZ_API void rz_cons_context_break_pop | ( | RzConsContext * | context, |
bool | sig | ||
) |
Definition at line 335 of file cons.c.
References b, break_stack_free(), NULL, rz_cons_context_is_main(), rz_stack_pop(), and rz_sys_signal().
Referenced by core_task_ctx_fini(), and rz_cons_break_pop().
RZ_API void rz_cons_context_break_push | ( | RzConsContext * | context, |
RzConsBreak | cb, | ||
void * | user, | ||
bool | sig | ||
) |
Definition at line 308 of file cons.c.
References __break_signal(), b, cb, rz_cons_context_is_main(), RZ_NEW0, rz_stack_is_empty(), rz_stack_push(), and rz_sys_signal().
Referenced by core_task_ctx_init(), and rz_cons_break_push().
RZ_API void rz_cons_context_free | ( | RzConsContext * | context | ) |
Definition at line 897 of file cons.c.
References cons_context_deinit(), and free().
Referenced by core_task_ctx_fini().
Definition at line 913 of file cons.c.
References I, and rz_cons_context_default.
Referenced by linux_dbg_wait(), rz_cons_context_break_pop(), and rz_cons_context_break_push().
RZ_API void rz_cons_context_load | ( | RzConsContext * | context | ) |
RZ_API RzConsContext* rz_cons_context_new | ( | RZ_NULLABLE RzConsContext * | parent | ) |
Definition at line 888 of file cons.c.
References cons_context_init(), NULL, and RZ_NEW0.
Referenced by core_task_ctx_init().
RZ_API void rz_cons_context_reset | ( | void | ) |
Definition at line 909 of file cons.c.
References I, and rz_cons_context_default.
Referenced by rz_core_task_ctx_switch().
Definition at line 369 of file cons.c.
References rz_cons_context_t::is_interactive, and rz_cons_context_default.
Referenced by cmd_task_runner().
Definition at line 1891 of file cons.c.
Referenced by ds_print_meta_infos(), and rz_analysis_rtti_print_all().
Definition at line 939 of file cons.c.
References free(), msg, NULL, rz_cons_newline(), rz_cons_strcat(), rz_strbuf_append(), rz_strbuf_drain(), and rz_strbuf_new().
Referenced by __handle_cmd_str_cache(), core_cmd_raw(), core_cmd_raw_node(), rz_core_prompt_exec(), and rz_core_visual_prompt().
Definition at line 496 of file cons.c.
References I.
Referenced by cmd_analysis_graph(), and rz_cons_highlight().
Definition at line 500 of file cons.c.
References DWORD, ENABLE_EXTENDED_FLAGS, ENABLE_QUICK_EDIT_MODE, h, HANDLE, I, RZ_VIRT_TERM_MODE_COMPLETE, and write.
Referenced by __holdMouseState(), __panels_process(), add_comment(), agraph_follow_innodes(), cmd_analysis_graph(), rz_cons_controlz(), rz_cons_fgets(), rz_cons_hud(), rz_core_agraph_print_interactive(), rz_core_graph_print(), rz_core_visual(), rz_core_visual_cmd(), rz_core_visual_panels_root(), rz_core_visual_prompt_input(), rz_core_visual_showcursor(), rz_core_visual_xrefs(), rz_diff_hex_visual(), rz_line_readline_cb(), showcursor(), and visual_comma().
RZ_API void rz_cons_fill_line | ( | void | ) |
Definition at line 737 of file cons.c.
References free(), I, malloc(), memset(), p, and rz_cons_strcat().
Referenced by handleHints(), and rz_core_visual_define().
RZ_API void rz_cons_filter | ( | void | ) |
Definition at line 836 of file cons.c.
References CTX, ctx_rowcol_calc_reset(), free(), I, input(), rz_cons_grepbuf(), rz_cons_html_filter(), and rz_str_ndup().
Referenced by core_cmd_raw(), core_cmd_raw_node(), oldinput_get_help(), and rz_cons_flush().
RZ_API void rz_cons_flush | ( | void | ) |
Definition at line 959 of file cons.c.
References __cons_write(), CONS_MAX_USER, CTX, d, eprintf, benchmark::FILE, free(), I, i, lastMatters(), len, lines(), malloc(), memcpy(), NULL, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_filter(), rz_cons_highlight(), rz_cons_is_breaked(), rz_cons_is_interactive(), rz_cons_less_str(), rz_cons_reset(), rz_cons_set_raw(), rz_cons_yesno(), RZ_MAX, rz_num_units(), rz_str_char_count(), rz_str_ndup(), rz_sys_cmd_str_full(), rz_sys_fopen(), rz_sys_usleep(), and cmd_descs_generate::str.
Referenced by __calculator_cb(), __cons_cb_fkey(), __continue_cb(), __core_visual_view_graph_update(), __handle_tab(), __handle_visual_mark(), __io_continue(), __io_kill(), __listPlugins(), __panel_all_clear(), __panels_refresh(), __print_prompt(), __rap_reg_profile(), __rtr_shell(), __show_status(), __show_status_input(), __show_status_yesno(), __system_shell_cb(), __update_modal(), add_comment(), agraph_follow_innodes(), agraph_print(), agraph_refresh(), config_visual_hit(), convert_dot_str_to_image(), convert_dotcmd_to_image(), core_basefind_progess_status(), DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_iter_offsets(), find_autocomplete(), foreachOffset(), goto_asmqjmps(), handleHints(), macro_call(), nextword(), pager_printpage(), print_rline_task(), rabin_do_operation(), readline_callback(), rtr_visual(), run_commands(), rz_analyze_cycles_handler(), rz_cmd_debug_dmi(), rz_cmd_debug_map_current_handler(), rz_cmd_help(), rz_cmd_kuery(), rz_cons_any_key(), rz_cons_bind(), rz_cons_fgets(), rz_cons_memcat(), rz_cons_message(), rz_core_cmd_foreach(), rz_core_cmd_pipe_old(), rz_core_cmd_str_pipe(), rz_core_cmd_subst(), rz_core_cmd_subst_i(), rz_core_debug_breakpoint_hit(), rz_core_debug_print_status(), rz_core_debug_syscall_hit(), rz_core_flush(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_prompt_exec(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_analysis_refresh(), rz_core_visual_bit_editor(), rz_core_visual_browse(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_debugtraces_help(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_hud(), rz_core_visual_prompt(), rz_core_visual_show_char(), rz_core_visual_showcursor(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), rz_diff_draw_tui(), rz_diff_hex_visual(), rz_lang_prompt(), rz_line_readline_cb(), rz_main_rizin(), rz_main_rz_asm(), rz_main_rz_bin(), rz_main_rz_sign(), search_collisions(), selection_widget_draw(), selection_widget_update(), showcursor(), visual_help(), visual_offset(), visual_prompt(), visual_refresh(), and visual_seek_animation().
Definition at line 658 of file cons.c.
References cons_context_deinit(), CTX, I, NULL, RZ_FREE, and rz_line_free().
Referenced by rz_core_fini(), rz_diff_hex_visual(), rz_main_rizin(), rz_main_rz_agent(), and rzfind_open_file().
Return the current RzCons buffer.
Definition at line 819 of file cons.c.
Referenced by core_cmd_raw(), core_cmd_raw_node(), delete_last_comment(), ds_align_comment(), ds_newline(), ds_print_meta_infos(), ds_print_ptr(), rz_cons_get_buffer_dup(), and rz_core_bin_pdb_load().
Return a newly allocated buffer containing what's currently in RzCons buffer.
Definition at line 827 of file cons.c.
References NULL, rz_cons_get_buffer(), s, and strdup().
Referenced by __io_reg_profile(), __reg_read(), ds_newline(), get_graph_string(), oldinput_get_help(), and rz_core_cmd_foreach().
Definition at line 832 of file cons.c.
References CTX.
Referenced by core_cmd_raw(), core_cmd_raw_node(), ds_begin_line(), and ds_print_meta_infos().
Definition at line 484 of file cons.c.
Referenced by __create_almighty(), __drag_and_resize(), __handle_mouse(), and rz_core_visual_cmd().
Definition at line 387 of file cons.c.
References info(), isdigit, read(), RZ_CONS_GET_CURSOR_POSITION, save, TCSANOW, and write.
Referenced by core_basefind_progess_status(), rz_core_bin_basefind_print(), and selection_widget_draw().
RZ_API int rz_cons_get_cursor | ( | RZ_NONNULL int * | rows | ) |
Calculates the aproximated x,y coordinates of the cursor before flushing.
[out] | rows | Row number of the cursor |
Definition at line 1298 of file cons.c.
References CTX, rz_return_val_if_fail, and rz_warn_if_reached.
Referenced by rz_cons_bind().
Definition at line 1922 of file cons.c.
References NULL, RUNE_CORNER_BL, RUNE_CORNER_BR, RUNE_CORNER_TL, RUNE_CORNER_TR, RUNE_CURVE_CORNER_BL, RUNE_CURVE_CORNER_BR, RUNE_CURVE_CORNER_TL, RUNE_CURVE_CORNER_TR, RUNE_LINE_CROSS, RUNE_LINE_HORIZ, RUNE_LINE_VERT, RUNECODE_CORNER_BL, RUNECODE_CORNER_BR, RUNECODE_CORNER_TL, RUNECODE_CORNER_TR, RUNECODE_CURVE_CORNER_BL, RUNECODE_CURVE_CORNER_BR, RUNECODE_CURVE_CORNER_TL, RUNECODE_CURVE_CORNER_TR, RUNECODE_LINE_CROSS, RUNECODE_LINE_HORIZ, and RUNECODE_LINE_VERT.
Referenced by rz_cons_canvas_to_string().
Definition at line 1446 of file cons.c.
References close, fd, free(), I, ioctl, NULL, O_RDONLY, RZ_MAX, rz_sys_getenv(), cmd_descs_generate::str, TIOCGWINSZ, tty, winsize::ws_col, and winsize::ws_row.
Referenced by __add_cmd_panel(), __add_cmdf_panel(), __add_help_panel(), __adjust_side_panels(), __call_visual_graph(), __core_visual_view_graph_update(), __do_panels_resize(), __fix_layout_h(), __handle_mouse(), __handle_mouse_on_panel(), __layout_default(), __move_panel_to_down(), __move_panel_to_left(), __move_panel_to_right(), __move_panel_to_up(), __panels_new(), __panels_process(), __panels_refresh(), __print_prompt(), agraph_print(), cb_scrcolumns(), cmd_pCd(), cmd_pCD(), cmd_pCx(), desc_list_visual_cb(), ds_show_xrefs(), fill_wrapped_comment(), flagbars(), goto_asmqjmps(), hud_filter(), num_callback(), print_debug_maps_ascii_art(), print_options(), readline_callback(), rz_analysis_function_list_ascii_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_info_section_bars_handler(), rz_cmd_print(), rz_cons_bind(), rz_cons_less_str(), rz_cons_message(), rz_cons_new(), rz_cons_strcat_at(), rz_core_analysis_bbs_asciiart(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_column(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_config(), rz_core_visual_define(), rz_core_visual_graph(), rz_core_visual_prompt_input(), rz_core_visual_trackflags(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), rz_debug_traces_ascii(), rz_diff_hex_visual(), rz_diff_resize_buffer(), rz_line_readline_cb(), rz_open_binary_list_ascii_handler(), rz_open_maps_list_ascii_handler(), show_config_options(), var_functions_show(), var_variables_show(), visual_flagzone(), visual_offset(), and visual_responsive().
RZ_API void rz_cons_goto_origin_reset | ( | void | ) |
Definition at line 732 of file cons.c.
References Color_RESET, rz_cons_gotoxy(), and rz_cons_strcat().
Referenced by rz_diff_draw_tui(), rz_diff_hex_visual(), and visual_refresh().
Definition at line 724 of file cons.c.
References rz_cons_printf(), and x.
Referenced by __handle_tab(), __handle_visual_mark(), __panels_refresh(), __print_prompt(), __show_status(), __show_status_input(), __show_status_yesno(), __update_modal(), agraph_follow_innodes(), agraph_print(), core_basefind_progess_status(), goto_asmqjmps(), rz_cmd_help(), rz_cons_clear00(), rz_cons_column(), rz_cons_goto_origin_reset(), rz_cons_html_filter(), rz_cons_hud(), rz_cons_message(), rz_cons_strcat_at(), rz_core_bin_basefind_print(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_define(), rz_core_visual_prompt_input(), rz_core_visual_show_char(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), selection_widget_draw(), visual_offset(), visual_prompt(), visual_refresh(), and visual_seek_animation().
Definition at line 1756 of file cons.c.
References CTX, ctx_rowcol_calc_reset(), free(), I, malloc(), NULL, rz_cons_enable_highlight(), RZ_FREE, rz_str_ansi_filter(), rz_str_ndup(), rz_str_replace_thunked(), and strdup().
Referenced by cb_scrhighlight(), rz_cons_flush(), and rz_cons_visual_flush().
Definition at line 1662 of file cons.c.
References color, and rz_cons_strcat().
Referenced by cmd_print_pxA().
Definition at line 373 of file cons.c.
References breaked, CTX, eprintf, I, and rz_time_now_mono().
Referenced by __childrenFlagsOf(), __core_analysis_fcn(), _analysis_calls(), agraph_print_edges(), analBars(), analPaths(), analysis_block_cb(), basefind_pointer_map_iter(), cmd_dcu(), cmd_search_bin(), core_basefind_check_ctrl_c(), core_basefind_progess_status(), core_perform_auto_analysis(), DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_analysis_search(), do_asm_search(), do_debug_trace_calls(), do_esil_search(), do_section_search(), do_string_search(), do_syscall_search(), draw_horizontal_line(), draw_vertical_line(), get_crossing_matrix(), lang_pipe_run(), linux_handle_signals(), macro_call(), objc_find_refs(), print_cmd_analysis_after_traps_print(), rtr_visual(), rtti_msvc_read_base_class_array(), run_basic_block_analysis(), rz_analysis_class_recover_from_rzbin(), rz_analysis_reflines_get(), rz_analysis_rtti_print_all(), rz_analysis_run_tasks(), rz_analysis_vtable_search(), rz_analyze_function_linked_offsets_handler(), rz_cmd_analysis(), rz_cmd_debug(), rz_cmd_debug_continue_mapped_io_handler(), rz_cmd_debug_step_cond_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_search(), rz_cmd_sizes_of_n_instructions_handler(), rz_cons_bind(), rz_cons_canvas_write(), rz_cons_flush(), rz_cons_new(), rz_core_analysis_all(), rz_core_analysis_calls(), rz_core_analysis_continue_until_call(), rz_core_analysis_continue_until_syscall(), rz_core_analysis_cycles(), rz_core_analysis_esil(), rz_core_analysis_esil_emulate(), rz_core_analysis_everything(), rz_core_analysis_fcn(), rz_core_analysis_propagate_noreturn(), rz_core_analysis_refs(), rz_core_analysis_resolve_golang_strings(), rz_core_analysis_search(), rz_core_analysis_search_xrefs(), rz_core_analysis_sigdb_apply(), rz_core_analysis_type_match(), rz_core_analysis_types_propagation(), rz_core_analysis_value_pointers(), rz_core_asm_back_disassemble(), rz_core_asm_back_disassemble_all(), rz_core_asm_bwdisassemble(), rz_core_asm_strsearch(), rz_core_bin_apply_strings(), rz_core_bin_print_source_line_info(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_subst(), rz_core_debug_continue_until(), rz_core_debug_step_until_frame(), rz_core_disasm_pdi_with_buf(), rz_core_dump(), rz_core_esil_step(), rz_core_file_open(), rz_core_link_stroff(), rz_core_print_disasm(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), rz_core_rtr_cmds(), rz_core_rtr_http_run(), rz_core_search_prelude(), rz_core_search_rop(), rz_core_search_value_in_range(), rz_core_serve(), rz_core_visual(), rz_core_visual_graph(), rz_debug_continue_kill(), rz_debug_esil_step(), rz_diff_hex_visual(), rz_il_vm_step_until_addr_handler(), rz_line_readline_cb(), search_collisions(), search_hash(), search_similar_pattern_in(), set_layout(), step_until(), step_until_esil(), step_until_flag(), step_until_inst(), step_until_optype(), update_graph_sizes(), winkd_lock_enter(), and winkd_send_state_manipulate_req().
Definition at line 365 of file cons.c.
References CTX.
Referenced by __panels_process(), cmd_dcu(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_init(), fill_wrapped_comment(), mustSaveHistory(), rz_cmd_help(), rz_cmd_kuery(), rz_cmd_panels(), rz_cmd_visual(), rz_cons_flush(), rz_cons_hud_string(), rz_cons_less_str(), rz_cons_yesno(), rz_core_agraph_print_interactive(), rz_core_cmd_pipe_old(), rz_core_cmd_subst(), rz_core_editor(), rz_core_graph_print(), rz_core_visual_graph(), rz_hash_bang_handler(), and rz_main_rizin().
Definition at line 1341 of file cons.c.
References HANDLE, ioctl, sb, stat, TIOCGWINSZ, tty, winsize::ws_col, and winsize::ws_row.
Referenced by rz_main_rizin().
RZ_API void rz_cons_last | ( | void | ) |
Definition at line 927 of file cons.c.
References CTX, and rz_cons_memcat().
Referenced by rz_last_output_handler().
Definition at line 1813 of file cons.c.
References b, CTX, delta, and len.
Referenced by ds_print_relocs(), and rz_cons_lastline_utf8_ansi_len().
Definition at line 1224 of file cons.c.
References breaked, CTX, I, len, memcpy(), palloc(), rz_cons_flush(), rz_mem_mem(), cmd_descs_generate::str, and write.
Referenced by cmd_print_blocks(), core_cmd_pipe(), mywrite(), rz_cmd_print(), rz_cons_last(), rz_cons_strcat(), rz_cons_strcat_at(), rz_cons_strcat_justify(), rz_core_cmd_pipe_old(), rz_core_yank_print(), rz_core_yank_print_string(), selection_widget_draw(), and system_common_handler().
Definition at line 1253 of file cons.c.
References CTX, I, len, memset(), and palloc().
Referenced by ds_align_comment(), ds_print_relocs(), and rz_cons_strcat_justify().
Definition at line 589 of file cons.c.
References BRKINT, cons_context_init(), CS8, CSIZE, ECHO, ECHONL, eprintf, I, ICANON, ICRNL, IEXTEN, IGNCR, INLCR, ISIG, ISTRIP, IXON, memcpy(), NULL, PARENB, PARMRK, rz_cons_context_default, rz_cons_get_size(), rz_cons_is_breaked(), rz_cons_reset(), rz_cons_rgb_init(), rz_cons_rgb_str_off(), rz_line_new(), RZ_NEW0, rz_print_set_is_interrupted_cb(), rz_sys_signal(), RZ_VIRT_TERM_MODE_COMPLETE, SIGWINCH, TRUE, and VMIN.
Referenced by rz_core_init(), rz_main_rizin(), rz_main_rz_agent(), rz_main_rz_bin(), and rzfind_open_file().
RZ_API void rz_cons_newline | ( | void | ) |
Definition at line 1274 of file cons.c.
References color, Color_RESET_ALL, I, i, in, n, output, rz_cons_reset_colors(), rz_cons_strcat(), and to.
Referenced by __printPattern(), agraph_print(), annotated_hexdump(), bb_info_print(), bin_pe_versioninfo(), classdump_cpp(), classdump_java(), cmd_prc(), cmd_print_bars(), core_cmp_bits(), ds_newline(), fcn_list_print_info(), function_print_calls(), hexprint(), iter_dbt_commands(), pr_bb(), print_arena_stats(), print_bin_content(), print_format_values(), print_heap_fastbin(), print_instruction_ops(), print_main_arena_bins(), print_rop(), print_tcache_content(), rz_agraph_print(), rz_analysis_list_vtables(), rz_analysis_xrefs_from_list_handler(), rz_cmd_alias(), rz_cmd_debug_display_bt_oneline_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_help(), rz_cmd_print(), rz_cmd_shell_uname_handler(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_pal_list(), rz_cons_pal_show_256(), rz_cons_pal_show_gs(), rz_cons_pal_show_rgb(), rz_cons_println(), rz_cons_strcat_justify(), rz_core_asm_plugin_print(), rz_core_cmd_foreach(), rz_core_disasm_pdi_with_buf(), rz_core_hash_plugins_print(), rz_core_print_func_args(), rz_core_visual_bit_editor(), rz_core_visual_colors(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_xrefs(), rz_core_yank_dump(), rz_core_yank_print(), rz_core_yank_print_string(), rz_print_hexdump_emoji_handler(), rz_regs_show_valgroup(), showBuffer(), showmem(), showregs(), siglistcb(), var_accesses_list(), var_variables_show(), and visual_flagzone().
RZ_API void rz_cons_pop | ( | void | ) |
Definition at line 876 of file cons.c.
References cons_stack_free(), cons_stack_load(), CTX, and rz_stack_pop().
Referenced by __io_reg_profile(), backtrace_vars(), core_cmd_raw(), core_cmd_raw_node(), function_task_runner(), get_cf_offset(), get_fcn_name(), oldinput_get_help(), rz_core_bin_pdb_load(), rz_core_cmd_foreach(), rz_core_debug_breakpoint_hit(), and rz_core_print_disasm().
Definition at line 1202 of file cons.c.
References rz_cons_printf_list().
Referenced by __cons_cb_fkey(), __core_cmd_search_asm_byteswap(), __core_cmd_search_asm_infinite(), __handle_tab(), __handle_visual_mark(), __preline_flag(), __printPattern(), __printRecursive(), __show_status(), _aeli_iter(), _cb_hit(), _CbInRangeAav(), _CbInRangeSearchV(), _ds_comment_align_(), _pointer_table(), add_footer(), add_header(), agraph_follow_innodes(), agraph_print_edge(), agraph_print_edge_dot(), agraph_print_edge_gml(), agraph_print_node_dot(), agraph_print_node_gml(), analysis_class_print(), analysis_class_print_as_cmd(), analysis_fcn_data(), analysis_fcn_data_gaps(), annotated_hexdump(), apply_maps_as_flags(), asciiart_backtrace(), backtrace_vars(), bb_info_print(), bin_class_print_rizin(), bin_elf_versioninfo_verneed(), bin_elf_versioninfo_versym(), bin_memory_print_rec(), bin_pe_versioninfo(), bin_resources_print_standard(), bin_trycatch(), callback_foreach_kv(), cb_binstrenc(), cb_emuskip(), cb_graphformat(), cb_scrstrconv(), cb_searchin(), cb_strfilter(), cb_strpurge(), cb_zoombyte(), classdump_c(), classdump_cpp(), classdump_java(), classdump_objc(), cmd_address_info(), cmd_aea(), cmd_agraph_edge(), cmd_agraph_node(), cmd_analysis_esil(), cmd_analysis_ucall_ref(), cmd_debug_current_modules(), cmd_debug_modules(), cmd_p_minus_e(), cmd_prc(), cmd_print_bars(), cmd_print_blocks(), cmd_print_eq_dict(), cmd_print_format(), cmd_print_fromage(), cmd_print_gadget(), cmd_print_pv(), cmd_print_pxA(), cmd_search_bin(), config_print_node(), config_visual_hit(), consumeBuffer(), convert_dot_str_to_image(), convert_dotcmd_to_image(), core_analysis_bytes_desc(), core_analysis_bytes_esil(), core_analysis_bytes_size(), core_analysis_color_curr_node(), core_analysis_graph_construct_edges(), core_analysis_graph_construct_nodes(), core_analysis_name_print(), core_analysis_var_list_show(), core_basefind_progess_status(), core_bin_file_print(), core_cmp_bits(), core_print_2bpp_row(), core_print_2bpp_tiles(), core_print_columns(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), desc_list_visual_cb(), dex_print_class_def(), dex_print_class_def_exports(), dex_print_encoded_field(), dex_print_encoded_method(), disasm_strings(), disasm_until_ret(), disassemble_till_return_is_found(), do_analysis_search(), do_asm_search(), do_ref_search(), do_section_search(), do_string_search(), do_syscall_search(), dot_trace_traverse(), ds_begin_line(), ds_cdiv_optimization(), ds_comment_(), ds_control_flow_comments(), ds_disassemble(), ds_print_asmop_payload(), ds_print_bbline(), ds_print_comments_right(), ds_print_cycles(), ds_print_data_type(), ds_print_dwarf(), ds_print_family(), ds_print_labels(), ds_print_meta_infos(), ds_print_middle(), ds_print_offset(), ds_print_op_size(), ds_print_optype(), ds_print_pre(), ds_print_ref_lines(), ds_print_relocs(), ds_print_shortcut(), ds_print_show_bytes(), ds_print_trace(), ds_show_flags(), ds_show_functions(), ds_show_functions_argvar(), end_state(), entries_initfini_print(), fcn_list_bbs(), fcn_print_info(), fcn_print_trace_info(), flag_tag_print(), flag_zone_list(), flagbar_foreach(), flirt_print_indentation(), flirt_print_module(), flirt_print_node(), flirt_print_node_pattern(), foreach_offset_annotation(), func_walk_blocks(), function_list_print(), function_list_print_as_cmd(), function_list_print_quiet(), function_print_calls(), goto_asmqjmps(), handle_entropy(), handle_ts_stmt(), handleHints(), hexprint(), hint_node_print(), list_all_functions_at_vtable_offset(), list_vars(), listOpDescriptions(), meta_variable_comment_print(), open_maps_show(), pr_bb(), print_arch(), print_arena_stats(), print_arg_str(), print_bin_content(), print_cmd_analysis_after_traps_print(), print_debug_map_line(), print_debug_maps_ascii_art(), print_demangler_info(), print_fcn_arg(), print_flag_name(), print_flag_orig_name(), print_flag_rizin(), print_format_values(), print_fpu(), print_function_labels_cb(), print_graph_agg(), print_heap_chunk_simple(), print_heap_fastbin(), print_hint_h_format(), print_hint_tree(), print_instruction_ops(), print_instruction_trace(), print_largebin_description(), print_line_op(), print_malloc_states(), print_node_options(), print_offset_in_binary_line_bar(), print_options(), print_rline_task(), print_rop(), print_smallbin_description(), print_source_info(), print_space_stack(), print_stats(), print_tcache_content(), print_trampolines(), print_unsortedbin_description(), printAnalPaths(), printPadded(), printVarSummary(), readline_callback(), rizin_compare_unified(), rizin_compare_words(), rop_kuery(), rtr_visual(), rtti_itanium_print_class_type_info(), rtti_itanium_print_si_class_type_info(), rtti_itanium_print_vmi_class_type_info(), rtti_msvc_print_base_class_descriptor(), rtti_msvc_print_class_hierarchy_descriptor(), rtti_msvc_print_complete_object_locator(), rtti_msvc_print_type_descriptor(), rz_analysis_basic_block_find_paths_handler(), rz_analysis_basic_block_list_handler(), rz_analysis_class_base_list_handler(), rz_analysis_class_list_handler(), rz_analysis_class_vtable_list_handler(), rz_analysis_esil_trace_list(), rz_analysis_function_address_handler(), rz_analysis_function_args_and_vars_xrefs_handler(), rz_analysis_function_autoname_handler(), rz_analysis_function_count_handler(), rz_analysis_function_describe_offset_handler(), rz_analysis_function_import_list_handler(), rz_analysis_function_list_ascii_handler(), rz_analysis_function_size_sum_handler(), rz_analysis_function_vars_dis_refs_handler(), rz_analysis_function_vars_handler(), rz_analysis_function_vars_stackframe_handler(), rz_analysis_function_xrefs_handler(), rz_analysis_functions_map_handler(), rz_analysis_list_struct_offsets_handler(), rz_analysis_list_vtables(), rz_analysis_syscall_print_handler(), rz_analysis_var_global_list_show(), rz_analysis_xrefs_copy_handler(), rz_analysis_xrefs_from_list_handler(), rz_analysis_xrefs_list_handler(), rz_analysis_xrefs_to_graph_cmd_handler(), rz_analysis_xrefs_to_list_handler(), rz_analyze_cycles_handler(), rz_bin_pdb_download(), rz_block_handler(), rz_block_max_handler(), rz_cmd_alias(), rz_cmd_analysis(), rz_cmd_arena_print_handler(), rz_cmd_debug(), rz_cmd_debug_bp_set_expr_cur_offset_handler(), rz_cmd_debug_display_bt_handler(), rz_cmd_debug_display_bt_oneline_handler(), rz_cmd_debug_list_bp_handler(), rz_cmd_debug_list_bp_indexes_handler(), rz_cmd_debug_process_profile_edit_handler(), rz_cmd_debug_show_bp_index_handler(), rz_cmd_debug_show_cur_bp_handler(), rz_cmd_debug_trace_handler(), rz_cmd_dexs_handler(), rz_cmd_disassemble_ropchain_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_eval_color_load_theme_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_heap_tcache_print_handler(), rz_cmd_help(), rz_cmd_help_search_handler(), rz_cmd_info_demangle_handler(), rz_cmd_info_hashes_handler(), rz_cmd_info_section_bars_handler(), rz_cmd_print(), rz_cmd_print_gadget_print_as_rizin_handler(), rz_cmd_print_timestamp_current_handler(), rz_cmd_print_timestamp_dos_handler(), rz_cmd_print_timestamp_hfs_handler(), rz_cmd_print_timestamp_ntfs_handler(), rz_cmd_print_timestamp_unix_handler(), rz_cmd_remote(), rz_cmd_search(), rz_cmd_shell_cat_handler(), rz_cmd_shell_uname_handler(), rz_cmd_sizes_of_n_instructions_handler(), rz_cmd_state_output_print(), rz_comment_filelink_handler(), rz_cons_any_key(), rz_cons_bind(), rz_cons_cmd_help(), rz_cons_color(), rz_cons_gotoxy(), rz_cons_hud(), rz_cons_pal_list(), rz_cons_pal_show(), rz_cons_pal_show_256(), rz_cons_pal_show_gs(), rz_cons_pal_show_rgb(), rz_cons_set_title(), rz_convert_mne_handler(), rz_core_agraph_add_edge(), rz_core_agraph_del_edge(), rz_core_agraph_print_dot(), rz_core_agraph_print_gml(), rz_core_analysis_bbs_asciiart(), rz_core_analysis_bbs_info_print(), rz_core_analysis_callgraph(), rz_core_analysis_cc_print(), rz_core_analysis_coderefs(), rz_core_analysis_data(), rz_core_analysis_datarefs(), rz_core_analysis_fcn_returns(), rz_core_analysis_function_strings_print(), rz_core_analysis_graph(), rz_core_analysis_il_vm_status(), rz_core_analysis_paths(), rz_core_analysis_sigdb_apply(), rz_core_annotated_code_print(), rz_core_annotated_code_print_json(), rz_core_asm_plugin_print(), rz_core_bin_basefind_print(), rz_core_bin_class_fields_print(), rz_core_bin_class_methods_print(), rz_core_bin_classes_print(), rz_core_bin_dwarf_print_abbrev_section(), rz_core_bin_dwarf_print_aranges(), rz_core_bin_dwarf_print_attr_value(), rz_core_bin_dwarf_print_debug_info(), rz_core_bin_dwarf_print_line_units(), rz_core_bin_dwarf_print_loc(), rz_core_bin_export_info(), rz_core_bin_fields_print(), rz_core_bin_imports_print(), rz_core_bin_info_print(), rz_core_bin_libs_print(), rz_core_bin_main_print(), rz_core_bin_plugin_print(), rz_core_bin_print_source_line_sample(), rz_core_bin_relocs_print(), rz_core_bin_sections_print(), rz_core_bin_size_print(), rz_core_binxtr_plugin_print(), rz_core_clippy(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_init(), rz_core_cmd_subst(), rz_core_cmd_subst_i(), rz_core_cmp_disasm_print(), rz_core_cmp_print(), rz_core_cmpwatch_show(), rz_core_core_plugin_print(), rz_core_debug_esil(), rz_core_debug_kill(), rz_core_debug_plugin_print(), rz_core_disasm_pdi_with_buf(), rz_core_esil_dumpstack(), rz_core_esil_step(), rz_core_file_binlist(), rz_core_file_print(), rz_core_flag_describe(), rz_core_flirt_dump_file(), rz_core_fortune_list(), rz_core_fortune_list_types(), rz_core_fortune_print_random(), rz_core_graph_print(), rz_core_hash_plugin_print(), rz_core_init(), rz_core_io_cache_print(), rz_core_io_pcache_print(), rz_core_io_plugin_print(), rz_core_lang_plugin_print(), rz_core_magic_at(), rz_core_meta_print(), rz_core_parser_plugin_print(), rz_core_print_bb_custom(), rz_core_print_bb_gml(), rz_core_print_disasm(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), rz_core_print_func_args(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_raw_file_print(), rz_core_reg_print_diff(), rz_core_rtr_cmds(), rz_core_rtr_list(), rz_core_spaces_print(), rz_core_syscall(), rz_core_task_list(), rz_core_task_print(), rz_core_types_calling_conventions_print(), rz_core_types_enum_print(), rz_core_types_function_print(), rz_core_types_link_print(), rz_core_types_print_all(), rz_core_types_show_format(), rz_core_types_struct_print(), rz_core_types_typedef_print(), rz_core_types_union_print(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_column(), rz_core_visual_bit_editor(), rz_core_visual_browse(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_debugtraces(), rz_core_visual_debugtraces_help(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_mark_dump(), rz_core_visual_show_char(), rz_core_visual_title(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), rz_core_yank_dump(), rz_debug_trace_print(), rz_debug_traces_ascii(), rz_debug_wait(), rz_egg_config_handler(), rz_egg_list_plugins_handler(), rz_egg_show_config_handler(), rz_eval_getset_handler(), rz_flag_distance_handler(), rz_flag_hexdump_handler(), rz_flag_length_handler(), rz_flag_realname_handler(), rz_flag_tag_search_handler(), rz_flag_zone_around_handler(), rz_flirt_create_handler(), rz_flirt_scan_handler(), rz_global_imports_handler(), rz_heap_tcache_content(), rz_il_vm_status_handler(), rz_il_vm_step_until_addr_handler(), rz_io_system_run_oldhandler(), rz_line_autocomplete(), rz_line_hist_list(), rz_list_mne_handler(), rz_main_rz_bin(), rz_main_rz_sign(), rz_meta_data_at_handler(), rz_open_binary_list_ascii_handler(), rz_open_binary_show_handler(), rz_open_maps_list_ascii_handler(), rz_print_analysis_details_handler(), rz_print_areas_no_functions_handler(), rz_print_hexdump_bits_handler(), rz_print_hexdump_emoji_handler(), rz_print_offset_sg(), rz_reg_arenas_handler(), rz_reg_arenas_stack_size_handler(), rz_reg_cc_handler(), rz_reg_cond_handler(), rz_reg_flags_handler(), rz_reg_roles_handler(), rz_regs_fpu_handler(), rz_regs_show_valgroup(), rz_resize_handler(), rz_resolve_jemalloc(), rz_seek_handler(), rz_seek_history_list_handler(), rz_seek_search(), rz_type_enum_bitfield_handler(), rz_write_debruijn_find_handler(), rzil_print_register_bitv(), rzil_print_register_bool(), search_hash(), search_similar_pattern_in(), selection_widget_draw(), show_analysis_classes(), show_class(), show_regs_handler(), showBuffer(), showmem(), showreg(), showregs(), siglistcb(), step_until_flag(), strings_print(), symbols_print(), syscall_dump(), syscalls_dump(), trace_traverse_pre(), types_cc_print(), types_xrefs(), types_xrefs_all(), types_xrefs_graph(), types_xrefs_summary(), var_accesses_list(), var_functions_show(), var_variables_show(), visual_flagzone(), visual_help(), visual_prompt(), visual_refresh(), visual_seek_animation(), xref_list_print_as_cmd(), xrefs_graph(), and xrefs_list_print().
Definition at line 1170 of file cons.c.
References CTX, I, MOAR, palloc(), rz_cons_strcat(), and vsnprintf.
Referenced by ds_comment_(), ds_comment_esil(), and rz_cons_printf().
Definition at line 233 of file cons.c.
References rz_cons_newline(), and cmd_descs_generate::str.
Referenced by bin_versioninfo(), cmd_aea(), cmd_analysis_esil(), cmd_debug_pid(), cmd_print_bars(), cmd_print_blocks(), cmd_print_format(), cmd_print_pv(), config_print_node(), core_analysis_name_print(), do_analysis_search(), egg_option(), meta_variable_comment_append(), nonreturn_print(), nonreturn_print_json(), pager_printpage(), print_demangler_info(), print_format_values(), print_json_string(), print_main_arena_bins(), print_malloc_states(), rabin_do_operation(), rop_kuery(), rtr_visual(), rz_analysis_function_address_handler(), rz_analysis_function_cc_set_get_handler(), rz_analysis_function_signature_handler(), rz_analysis_list_vtables(), rz_analysis_rtti_demangle_class_name_handler(), rz_analysis_syscall_name_handler(), rz_analysis_syscall_number_handler(), rz_analysis_syscall_show_handler(), rz_analyze_opcode_handler(), rz_cmd_alias(), rz_cmd_analysis(), rz_cmd_base64_decode_handler(), rz_cmd_base64_encode_handler(), rz_cmd_debug_dmi(), rz_cmd_debug_dmS_handler(), rz_cmd_debug_name_bp_handler(), rz_cmd_eval_color_list_current_theme_handler(), rz_cmd_help(), rz_cmd_info_demangle_handler(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javar_handler(), rz_cmd_kuery(), rz_cmd_print(), rz_cmd_print_magic_handler(), rz_cmd_search(), rz_cmd_shell_echo_handler(), rz_cmd_shell_env_handler(), rz_cmd_shell_pwd_handler(), rz_cmd_shell_which_handler(), rz_cmd_state_output_print(), rz_comment_at_handler(), rz_cons_grepbuf(), rz_cons_message(), rz_convert_mne_handler(), rz_core_agraph_print_json(), rz_core_analysis_callgraph(), rz_core_analysis_data(), rz_core_asm_plugin_print(), rz_core_asm_plugins_print(), rz_core_bin_classes_print(), rz_core_bin_imports_print(), rz_core_bin_signatures_print(), rz_core_debug_kill(), rz_core_disasm_pdi_with_buf(), rz_core_file_print(), rz_core_flag_describe(), rz_core_graph_print(), rz_core_hash_plugins_print(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), rz_core_rtr_cmd(), rz_core_rtr_http_run(), rz_core_task_list(), rz_core_types_calling_conventions_print(), rz_core_types_enum_print(), rz_core_types_enum_print_all(), rz_core_types_function_print_all(), rz_core_types_link_print_all(), rz_core_types_print_all(), rz_core_types_struct_print(), rz_core_types_struct_print_all(), rz_core_types_typedef_print(), rz_core_types_typedef_print_all(), rz_core_types_union_print(), rz_core_types_union_print_all(), rz_core_visual_analysis(), rz_core_visual_hud(), rz_core_yank_dump(), rz_debug_signal_list(), rz_eval_spaces_handler(), rz_eval_type_handler(), rz_flag_color_handler(), rz_flag_comment_handler(), rz_flag_describe_at_handler(), rz_flag_describe_closest_handler(), rz_heap_debug_block_win(), rz_heap_list_w32(), rz_hex_of_assembly_handler(), rz_il_vm_step_with_events_handler(), rz_main_rz_bin(), rz_meta_type_current_handler(), rz_print_bitstream_handler(), rz_print_byte_bitstream_handler(), rz_print_string_c_cpp_handler(), rz_reg_profile_comments_handler(), rz_reg_profile_gdb_handler(), rz_reg_profile_handler(), rz_reg_types_handler(), rz_resize_human_handler(), rz_type_function_cc_handler(), rz_type_list_enum_handler(), rz_type_list_function_handler(), rz_type_list_structure_handler(), rz_type_list_typedef_handler(), rz_type_list_union_handler(), show_config_options(), task_output(), types_cc_print(), types_enum_member_find(), types_enum_member_find_all(), types_xrefs_function(), var_functions_show(), and w32_list_heaps_blocks().
RZ_API void rz_cons_push | ( | void | ) |
Definition at line 860 of file cons.c.
References cons_stack_dump(), CTX, memset(), and rz_stack_push().
Referenced by __io_reg_profile(), backtrace_vars(), core_cmd_raw(), core_cmd_raw_node(), function_task_runner(), get_cf_offset(), get_fcn_name(), oldinput_get_help(), rz_core_bin_pdb_load(), rz_core_cmd_foreach(), rz_core_debug_breakpoint_hit(), and rz_core_print_disasm().
RZ_API void rz_cons_reset | ( | void | ) |
Definition at line 804 of file cons.c.
References cons_grep_reset(), CTX, ctx_rowcol_calc_reset(), and I.
Referenced by __io_maps(), __reg_read(), ds_newline(), get_graph_string(), rz_cons_column(), rz_cons_flush(), rz_cons_less_str(), rz_cons_new(), rz_cons_visual_flush(), rz_core_cmd_str_pipe(), rz_main_rizin(), rz_main_rz_sign(), and visual_refresh().
RZ_API void rz_cons_reset_colors | ( | void | ) |
Definition at line 783 of file cons.c.
References Color_RESET, Color_RESET_BG, and rz_cons_strcat().
Referenced by pager_printpage(), rz_cons_less_str(), rz_cons_newline(), and rz_core_visual_prompt_input().
Definition at line 1672 of file cons.c.
References I, RZ_VIRT_TERM_MODE_DISABLE, and write.
Referenced by rz_core_visual().
Set whether RzCons should flush content to screen or not.
flush | If true, calls to rz_cons_flush and rz_cons_visual_flush would flush cons content to the screen, otherwise they will not. |
Definition at line 2006 of file cons.c.
References CTX.
Referenced by oldinput_get_help(), and rz_core_debug_breakpoint_hit().
Definition at line 1724 of file cons.c.
References rz_cons_t::context, rz_cons_context_t::is_interactive, lasti, rz_cons_singleton(), and x.
Referenced by __panels_process(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), rz_core_cmd_subst_i(), rz_diff_hex_visual(), and rz_main_rz_sign().
RZ_API void rz_cons_set_last_interactive | ( | void | ) |
Definition at line 1729 of file cons.c.
References rz_cons_t::context, rz_cons_context_t::is_interactive, lasti, and rz_cons_singleton().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rz_core_cmd_subst_i().
void rz_cons_set_raw( [0,1] )
Change canonicality of the terminal
For optimization reasons, there's no initialization flag, so you need to ensure that the make the first call to rz_cons_set_raw() with '1' and the next calls ^=1, so: 1, 0, 1, 0, 1, ...
If you doesn't use this order you'll probably loss your terminal properties.
Definition at line 1617 of file cons.c.
References DWORD, ECHO, ECHONL, h, HANDLE, I, ICANON, IEXTEN, ISIG, rz_sys_xsystem, and TCSANOW.
Referenced by __prompt(), __system_shell_cb(), add_comment(), config_visual_hit(), rz_cmd_help(), rz_cons_fgets(), rz_cons_flush(), rz_cons_hud(), rz_cons_less_str(), rz_cons_readchar(), rz_cons_readchar_timeout(), rz_cons_yesno(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_config(), rz_core_visual_config_hud(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_line_readline_cb(), and rz_main_rizin().
Definition at line 1733 of file cons.c.
References rz_cons_printf(), RZ_FREE, and cmd_descs_generate::str.
Referenced by rz_cmd_help().
Definition at line 1581 of file cons.c.
References DWORD, FALSE, HANDLE, I, NULL, RZ_VIRT_TERM_MODE_DISABLE, rz_xwrite, and TRUE.
Referenced by __prompt(), agraph_follow_innodes(), cmd_analysis_graph(), config_visual_hit(), prompt(), rz_cons_controlz(), rz_cons_fgets(), rz_cons_hud(), rz_cons_less_str(), rz_core_agraph_print_interactive(), rz_core_graph_print(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_colors(), rz_core_visual_config(), rz_core_visual_config_hud(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_prompt_input(), rz_core_visual_showcursor(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_diff_hex_visual(), and showcursor().
Definition at line 300 of file cons.c.
References I.
Referenced by __holdMouseState(), __print_prompt(), __update_prompt_color(), agraph_refresh(), agraph_sdb_init(), agraph_toggle_mini(), agraph_toggle_tiny(), apply_line_style(), argv_get_help(), cb_breaklines(), cb_color(), cb_color_getter(), cb_fixcolumns(), cb_fixrows(), cb_rows(), cb_screcho(), cb_scrflush(), cb_scrhtml(), cb_scrint(), cb_scrlast(), cb_scrlinesleep(), cb_scrpagesize(), cb_teefile(), cmd_print_blocks(), core_analysis_graph_construct_edges(), core_analysis_graph_construct_nodes(), core_analysis_graph_label(), core_cmp_bits(), core_print_columns(), core_task_ctx_init(), disasm_until_ret(), disassemble_till_return_is_found(), do_print_child_help(), fill_colored_args(), fill_details_do(), fill_usage_strbuf(), fill_wrapped_comment(), get_node_color(), jemalloc_get_bins(), jemalloc_get_chunks(), jemalloc_print_narenas(), palColorFor(), parse_grep_expression(), print_arena_stats(), print_bin_content(), print_debug_maps_ascii_art(), print_double_linked_list_bin(), print_double_linked_list_bin_graph(), print_double_linked_list_bin_simple(), print_heap_bin(), print_heap_chunk(), print_heap_chunk_simple(), print_heap_fastbin(), print_inst_minfo(), print_largebin_description(), print_malloc_info(), print_malloc_states(), print_offset_in_binary_line_bar(), print_search_progress(), print_smallbin_description(), print_tcache_content(), print_unsortedbin_description(), prompt(), rizin_compare_words(), rz_cmd_arena_print_handler(), rz_cmd_disassemble_ropchain_handler(), rz_cmd_disassembly_n_instrs_as_text_json_handler(), rz_cmd_eval_color_highlight_current_instruction_handler(), rz_cmd_eval_color_highlight_instruction_word_handler(), rz_cmd_heap_arena_bins_print_handler(), rz_cmd_heap_bins_list_print(), rz_cmd_heap_chunks_print_handler(), rz_cmd_heap_fastbins_print(), rz_cmd_heap_info_print_handler(), rz_cmd_main_arena_print_handler(), rz_cons_cmd_help(), rz_cons_fgets(), rz_cons_grep_line(), rz_cons_grepbuf(), rz_cons_less(), rz_cons_pal_show(), rz_cons_pal_update_event(), rz_cons_rainbow_get(), rz_cons_rgb_str(), rz_cons_set_interactive(), rz_cons_set_last_interactive(), rz_core_analysis_callgraph(), rz_core_analysis_data(), rz_core_analysis_graph(), rz_core_annotated_code_print(), rz_core_cmp_disasm_print(), rz_core_config_init(), rz_core_fgets(), rz_core_fini(), rz_core_init(), rz_core_rtr_http_stop(), rz_core_rtr_rap_run(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_append_help(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_hud(), rz_core_vmenu_append_help(), rz_core_wait(), rz_debug_continue_syscalls(), rz_debug_traces_ascii(), rz_diff_draw_tui(), rz_diff_hex_visual(), rz_heap_chunks_list(), rz_interpret_handler(), rz_line_autocomplete(), rz_line_readline_cb(), rz_line_set_prompt(), rz_main_rz_agent(), rz_print_offset_sg(), selection_widget_draw(), selection_widget_erase(), tiny_RzANode_print(), utf8_line_horiz(), utf8_line_vert(), and var_functions_show().
RZ_API void* rz_cons_sleep_begin | ( | void | ) |
Definition at line 443 of file cons.c.
Referenced by gdbr_connect(), gdbr_lock_enter(), lang_pipe_run(), linux_dbg_wait(), linux_set_options(), rz_cmd_shell_sleep_handler(), rz_cons_readchar(), rz_core_rtr_cmd(), rz_core_rtr_cmds(), rz_core_rtr_http_run(), rz_debug_winkd_wait(), send_vcont(), system_common_handler(), and w32_dbg_wait().
RZ_API void rz_cons_sleep_end | ( | void * | user | ) |
Definition at line 450 of file cons.c.
References I.
Referenced by gdbr_connect(), gdbr_lock_enter(), lang_pipe_run(), linux_dbg_wait(), linux_set_options(), rz_cmd_shell_sleep_handler(), rz_cons_readchar(), rz_core_rtr_cmd(), rz_core_rtr_cmds(), rz_core_rtr_http_run(), rz_debug_winkd_wait(), send_vcont(), system_common_handler(), and w32_dbg_wait().
Definition at line 1263 of file cons.c.
References I, len, rz_cons_memcat(), and cmd_descs_generate::str.
Referenced by __preline_flag(), agraph_print(), annotated_hexdump(), core_print_raw_buffer(), ds_control_flow_comments(), ds_end_line_highlight(), ds_print_color_reset(), ds_print_comments_right(), ds_print_core_vmode(), ds_print_cycles(), ds_print_data_type(), ds_print_esil_analysis(), ds_print_indent(), ds_print_labels(), ds_print_meta_infos(), ds_print_middle(), ds_print_offset(), ds_print_opstr(), ds_print_ptr(), ds_print_shortcut(), ds_print_show_cursor(), ds_print_trace(), ds_show_comments_describe(), ds_show_comments_right(), ds_show_flags(), ds_show_refs(), ds_start_line_highlight(), printCol(), rz_cmd_alias(), rz_cmd_call(), rz_cmd_print(), rz_cons_canvas_print(), rz_cons_canvas_print_region(), rz_cons_clear(), rz_cons_echo(), rz_cons_fill_line(), rz_cons_goto_origin_reset(), rz_cons_invert(), rz_cons_newline(), rz_cons_pal_list(), rz_cons_printf_list(), rz_cons_reset_colors(), rz_cons_strcat_at(), rz_core_bind(), rz_core_cmd_foreach(), rz_core_print_disasm_all(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_visual(), rz_core_visual_analysis_refresh(), rz_core_visual_cmd(), rz_core_visual_comments(), rz_core_visual_title(), rz_core_visual_view_rop(), rz_regs_show_valgroup(), siglistcb(), and visual_refresh().
Definition at line 260 of file cons.c.
References Color_RESET, test_evm::end, free(), h, H, i, len, RZ_CONS_CURSOR_RESTORE, RZ_CONS_CURSOR_SAVE, rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_memcat(), rz_cons_strcat(), RZ_MIN, rz_str_ansi_chrn(), rz_str_ansi_crop(), rz_str_ansi_len(), cmd_descs_generate::str, W, w, and x.
Referenced by __core_visual_view_graph_update(), rz_core_gadget_print(), and rz_core_visual_view_rop().
Definition at line 238 of file cons.c.
References c, i, len, rz_cons_memcat(), rz_cons_memset(), rz_cons_newline(), and cmd_descs_generate::str.
Referenced by ds_show_comments_right(), and rz_cons_column().
Definition at line 1871 of file cons.c.
References NULL, rz_str_newf(), and strdup().
Referenced by cmd_print_pxA().
RZ_API void rz_cons_visual_flush | ( | void | ) |
Definition at line 1067 of file cons.c.
References CTX, I, rz_cons_highlight(), rz_cons_reset(), rz_cons_visual_write(), and RZ_VIRT_TERM_MODE_DISABLE.
Referenced by agraph_print(), rz_cons_hud(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_debugtraces(), rz_core_visual_esil(), rz_core_visual_trackflags(), and visual_refresh().
RZ_API void rz_cons_visual_write | ( | char * | buffer | ) |
Definition at line 1097 of file cons.c.
References __cons_write(), Color_RESET, I, int, len, lines(), memset(), real_strlen(), RZ_CONS_CLEAR_FROM_CURSOR_TO_END, rz_mem_mem(), rz_str_ansi_chrn(), and w.
Referenced by rz_cons_visual_flush().
RZ_API void rz_cons_zero | ( | void | ) |
Definition at line 1749 of file cons.c.
Referenced by rz_core_prompt_exec(), and rz_main_rizin().
RZ_LIB_VERSION | ( | rz_cons | ) |
Definition at line 1722 of file cons.c.
Referenced by rz_cons_set_interactive(), and rz_cons_set_last_interactive().
|
static |
Definition at line 20 of file cons.c.
Referenced by __break_signal(), rz_cons_context_break(), rz_cons_context_is_main(), rz_cons_context_reset(), rz_cons_default_context_is_interactive(), and rz_cons_new().