Rizin
unix-like reverse engineering framework and cli tools
rz_cons.h File Reference
#include <rz_types.h>
#include <rz_util/rz_graph.h>
#include <rz_util/rz_hex.h>
#include <rz_util/rz_log.h>
#include <rz_util/rz_num.h>
#include <rz_util/rz_panels.h>
#include <rz_util/rz_pj.h>
#include <rz_util/rz_signal.h>
#include <rz_util/rz_stack.h>
#include <rz_util/rz_str.h>
#include <rz_util/rz_str_constpool.h>
#include <rz_util/rz_sys.h>
#include <rz_util/rz_utf8.h>
#include <rz_util/rz_file.h>
#include <rz_vector.h>
#include <sdb.h>
#include <ht_up.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  rz_cons_bind_t
 
struct  rz_cons_grep_t
 
struct  rcolor_t
 
struct  rz_cons_palette_t
 
struct  rz_cons_printable_palette_t
 
struct  rz_cons_canvas_t
 
struct  rz_cons_input_context_t
 
struct  rz_cons_context_t
 
struct  rz_cons_t
 
struct  rz_cons_canvas_line_style_t
 
struct  rz_selection_widget_t
 
struct  rz_line_hist_t
 
struct  rz_line_buffer_t
 
struct  rz_hud_t
 
struct  rz_line_comp_t
 
struct  rz_line_ns_completion_result_t
 
struct  rz_line_ns_completion_t
 
struct  rz_line_t
 
struct  rz_panels_menu_item
 
struct  rz_panels_menu_t
 
struct  RModal
 
struct  rz_panels_t
 
struct  rz_panels_root_t
 

Macros

#define CONS_MAX_USER   102400
 
#define CONS_BUFSZ   0x4f00
 
#define STR_IS_NULL(x)   (!x || !x[0])
 
#define CONS_PALETTE_SIZE   22
 
#define CONS_COLORS_SIZE   21
 
#define RZ_CONS_GREP_WORDS   10
 
#define RZ_CONS_GREP_WORD_SIZE   64
 
#define RZ_CONS_GREP_TOKENS   64
 
#define RZ_CONS_CMD_DEPTH   100
 
#define CONS_MAX_ATTR_SZ   16
 
#define RUNECODE_MIN   0xc8
 
#define RUNECODE_LINE_VERT   0xc8
 
#define RUNECODE_LINE_CROSS   0xc9
 
#define RUNECODE_CORNER_BR   0xca
 
#define RUNECODE_CORNER_BL   0xcb
 
#define RUNECODE_ARROW_RIGHT   0xcc
 
#define RUNECODE_ARROW_LEFT   0xcd
 
#define RUNECODE_LINE_HORIZ   0xce
 
#define RUNECODE_CORNER_TL   0xcf
 
#define RUNECODE_CORNER_TR   0xd0
 
#define RUNECODE_LINE_UP   0xd1
 
#define RUNECODE_CURVE_CORNER_TL   0xd2
 
#define RUNECODE_CURVE_CORNER_TR   0xd3
 
#define RUNECODE_CURVE_CORNER_BR   0xd4
 
#define RUNECODE_CURVE_CORNER_BL   0xd5
 
#define RUNECODE_MAX   0xd6
 
#define RUNECODESTR_MIN   0xc8
 
#define RUNECODESTR_LINE_VERT   "\xc8"
 
#define RUNECODESTR_LINE_CROSS   "\xc9"
 
#define RUNECODESTR_CORNER_BR   "\xca"
 
#define RUNECODESTR_CORNER_BL   "\xcb"
 
#define RUNECODESTR_ARROW_RIGHT   "\xcc"
 
#define RUNECODESTR_ARROW_LEFT   "\xcd"
 
#define RUNECODESTR_LINE_HORIZ   "\xce"
 
#define RUNECODESTR_CORNER_TL   "\xcf"
 
#define RUNECODESTR_CORNER_TR   "\xd0"
 
#define RUNECODESTR_LINE_UP   "\xd1"
 
#define RUNECODESTR_CURVE_CORNER_TL   "\xd2"
 
#define RUNECODESTR_CURVE_CORNER_TR   "\xd3"
 
#define RUNECODESTR_CURVE_CORNER_BR   "\xd4"
 
#define RUNECODESTR_CURVE_CORNER_BL   "\xd5"
 
#define RUNECODESTR_MAX   0xd5
 
#define RUNE_LINE_VERT   "│"
 
#define RUNE_LINE_CROSS   "┼" /* ├ */
 
#define RUNE_LINE_HORIZ   "─"
 
#define RUNE_LINE_UP   "↑"
 
#define RUNE_CORNER_BR   "┘"
 
#define RUNE_CORNER_BL   "└"
 
#define RUNE_CORNER_TL   "┌"
 
#define RUNE_CORNER_TR   "┐"
 
#define RUNE_ARROW_RIGHT   "ᐳ"
 
#define RUNE_ARROW_LEFT   "ᐸ"
 
#define RUNE_ARROW_UP   "ᐱ"
 
#define RUNE_ARROW_DOWN   "ᐯ"
 
#define RUNE_CURVE_CORNER_TL   "╭"
 
#define RUNE_CURVE_CORNER_TR   "╮"
 
#define RUNE_CURVE_CORNER_BR   "╯"
 
#define RUNE_CURVE_CORNER_BL   "╰"
 
#define RUNE_LONG_LINE_HORIZ   "―"
 
#define UTF_CIRCLE   "\u25EF"
 
#define UTF_BLOCK   "\u2588"
 
#define UTF8_POLICE_CARS_REVOLVING_LIGHT   "🚨"
 
#define UTF8_WHITE_HEAVY_CHECK_MARK   "✅"
 
#define UTF8_SEE_NO_EVIL_MONKEY   "🙈"
 
#define UTF8_SKULL_AND_CROSSBONES   "☠"
 
#define UTF8_KEYBOARD   "⌨"
 
#define UTF8_LEFT_POINTING_MAGNIFYING_GLASS   "🔍"
 
#define UTF8_DOOR   "🚪"
 
#define UTF8_VS16   "\xef\xb8\x8f"
 
#define HUD_BUF_SIZE   512
 
#define RZ_CONS_KEY_F1   0xf1
 
#define RZ_CONS_KEY_F2   0xf2
 
#define RZ_CONS_KEY_F3   0xf3
 
#define RZ_CONS_KEY_F4   0xf4
 
#define RZ_CONS_KEY_F5   0xf5
 
#define RZ_CONS_KEY_F6   0xf6
 
#define RZ_CONS_KEY_F7   0xf7
 
#define RZ_CONS_KEY_F8   0xf8
 
#define RZ_CONS_KEY_F9   0xf9
 
#define RZ_CONS_KEY_F10   0xfa
 
#define RZ_CONS_KEY_F11   0xfb
 
#define RZ_CONS_KEY_F12   0xfc
 
#define RZ_CONS_KEY_ESC   0x1b
 
#define RZ_CONS_CLEAR_LINE   "\x1b[2K\r"
 
#define RZ_CONS_CLEAR_SCREEN   "\x1b[2J\r"
 
#define RZ_CONS_CLEAR_FROM_CURSOR_TO_END   "\x1b[0J\r"
 
#define RZ_CONS_CURSOR_SAVE   "\x1b[s"
 
#define RZ_CONS_CURSOR_RESTORE   "\x1b[u"
 
#define RZ_CONS_GET_CURSOR_POSITION   "\x1b[6n"
 
#define RZ_CONS_CURSOR_UP   "\x1b[A"
 
#define RZ_CONS_CURSOR_DOWN   "\x1b[B"
 
#define RZ_CONS_CURSOR_RIGHT   "\x1b[C"
 
#define RZ_CONS_CURSOR_LEFT   "\x1b[D"
 
#define Color_BLINK   "\x1b[5m"
 
#define Color_INVERT   "\x1b[7m"
 
#define Color_INVERT_RESET   "\x1b[27m"
 
#define Color_RESET_TERMINAL
 
#define Color_RESET   "\x1b[0m" /* reset all */
 
#define Color_RESET_NOBG   "\x1b[27;22;24;25;28;39m" /* Reset everything except background (order is important) */
 
#define Color_RESET_BG   "\x1b[49m"
 
#define Color_RESET_ALL   "\x1b[0m\x1b[49m"
 
#define Color_BLACK   "\x1b[30m"
 
#define Color_BGBLACK   "\x1b[40m"
 
#define Color_RED   "\x1b[31m"
 
#define Color_BGRED   "\x1b[41m"
 
#define Color_WHITE   "\x1b[37m"
 
#define Color_BGWHITE   "\x1b[47m"
 
#define Color_GREEN   "\x1b[32m"
 
#define Color_BGGREEN   "\x1b[42m"
 
#define Color_MAGENTA   "\x1b[35m"
 
#define Color_BGMAGENTA   "\x1b[45m"
 
#define Color_YELLOW   "\x1b[33m"
 
#define Color_BGYELLOW   "\x1b[43m"
 
#define Color_CYAN   "\x1b[36m"
 
#define Color_BGCYAN   "\x1b[46m"
 
#define Color_BLUE   "\x1b[34m"
 
#define Color_BGBLUE   "\x1b[44m"
 
#define Color_GRAY   "\x1b[90m"
 
#define Color_BGGRAY   "\x1b[100m"
 
#define Color_BBLACK   Color_GRAY
 
#define Color_BBGBLACK   Color_BGGRAY
 
#define Color_BRED   "\x1b[91m"
 
#define Color_BBGRED   "\x1b[101m"
 
#define Color_BWHITE   "\x1b[97m"
 
#define Color_BBGWHITE   "\x1b[107m"
 
#define Color_BGREEN   "\x1b[92m"
 
#define Color_BBGGREEN   "\x1b[102m"
 
#define Color_BMAGENTA   "\x1b[95m"
 
#define Color_BBGMAGENTA   "\x1b[105m"
 
#define Color_BYELLOW   "\x1b[93m"
 
#define Color_BBGYELLOW   "\x1b[103m"
 
#define Color_BCYAN   "\x1b[96m"
 
#define Color_BBGCYAN   "\x1b[106m"
 
#define Color_BBLUE   "\x1b[94m"
 
#define Color_BBGBLUE   "\x1b[104m"
 
#define RZCOLOR(a, r, g, b, bgr, bgg, bgb, id16)    (RzColor) { 0, a, r, g, b, bgr, bgg, bgb, id16 }
 
#define RzColor_NULL   RZCOLOR(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1)
 
#define RzColor_BLACK   RZCOLOR(ALPHA_FG, 12, 12, 12, 0x00, 0x00, 0x00, 0)
 
#define RzColor_BGBLACK   RZCOLOR(ALPHA_BG, 12, 12, 12, 0x00, 0x00, 0x00, 0)
 
#define RzColor_RED   RZCOLOR(ALPHA_FG, 197, 15, 31, 0x00, 0x00, 0x00, 1)
 
#define RzColor_BGRED   RZCOLOR(ALPHA_BG, 197, 15, 31, 0x00, 0x00, 0x00, 1)
 
#define RzColor_WHITE   RZCOLOR(ALPHA_FG, 204, 204, 204, 0x00, 0x00, 0x00, 7)
 
#define RzColor_BGWHITE   RZCOLOR(ALPHA_BG, 204, 204, 204, 0x00, 0x00, 0x00, 7)
 
#define RzColor_GREEN   RZCOLOR(ALPHA_FG, 19, 161, 14, 0x00, 0x00, 0x00, 2)
 
#define RzColor_BGGREEN   RZCOLOR(ALPHA_BG, 19, 161, 14, 0x00, 0x00, 0x00, 2)
 
#define RzColor_MAGENTA   RZCOLOR(ALPHA_FG, 136, 23, 152, 0x00, 0x00, 0x00, 5)
 
#define RzColor_BGMAGENTA   RZCOLOR(ALPHA_BG, 136, 23, 152, 0x00, 0x00, 0x00, 5)
 
#define RzColor_YELLOW   RZCOLOR(ALPHA_FG, 193, 156, 0, 0x00, 0x00, 0x00, 3)
 
#define RzColor_BGYELLOW   RZCOLOR(ALPHA_BG, 193, 156, 0, 0x00, 0x00, 0x00, 3)
 
#define RzColor_CYAN   RZCOLOR(ALPHA_FG, 58, 150, 221, 0x00, 0x00, 0x00, 6)
 
#define RzColor_BGCYAN   RZCOLOR(ALPHA_BG, 58, 150, 221, 0x00, 0x00, 0x00, 6)
 
#define RzColor_BLUE   RZCOLOR(ALPHA_FG, 0, 55, 218, 0x00, 0x00, 0x00, 4)
 
#define RzColor_BGBLUE   RZCOLOR(ALPHA_BG, 0, 55, 218, 0x00, 0x00, 0x00, 4)
 
#define RzColor_BBLACK   RZCOLOR(ALPHA_FG, 118, 118, 118, 0x00, 0x00, 0x00, 8)
 
#define RzColor_BBGBLACK   RZCOLOR(ALPHA_BG, 118, 118, 118, 0x00, 0x00, 0x00, 8)
 
#define RzColor_BRED   RZCOLOR(ALPHA_FG, 231, 72, 86, 0x00, 0x00, 0x00, 9)
 
#define RzColor_BBGRED   RZCOLOR(ALPHA_BG, 231, 72, 86, 0x00, 0x00, 0x00, 9)
 
#define RzColor_BWHITE   RZCOLOR(ALPHA_FG, 242, 242, 242, 0x00, 0x00, 0x00, 15)
 
#define RzColor_BBGWHITE   RZCOLOR(ALPHA_BG, 242, 242, 242, 0x00, 0x00, 0x00, 15)
 
#define RzColor_BGREEN   RZCOLOR(ALPHA_FG, 22, 198, 12, 0x00, 0x00, 0x00, 10)
 
#define RzColor_BBGGREEN   RZCOLOR(ALPHA_BG, 22, 198, 12, 0x00, 0x00, 0x00, 10)
 
#define RzColor_BMAGENTA   RZCOLOR(ALPHA_FG, 180, 0, 158, 0x00, 0x00, 0x00, 13)
 
#define RzColor_BBGMAGENTA   RZCOLOR(ALPHA_BG, 180, 0, 158, 0x00, 0x00, 0x00, 13)
 
#define RzColor_BYELLOW   RZCOLOR(ALPHA_FG, 249, 241, 165, 0x00, 0x00, 0x00, 11)
 
#define RzColor_BBGYELLOW   RZCOLOR(ALPHA_BG, 249, 241, 165, 0x00, 0x00, 0x00, 11)
 
#define RzColor_BCYAN   RZCOLOR(ALPHA_FG, 97, 214, 214, 0x00, 0x00, 0x00, 14)
 
#define RzColor_BBGCYAN   RZCOLOR(ALPHA_BG, 97, 214, 214, 0x00, 0x00, 0x00, 14)
 
#define RzColor_BBLUE   RZCOLOR(ALPHA_FG, 59, 120, 255, 0x00, 0x00, 0x00, 12)
 
#define RzColor_BBGBLUE   RZCOLOR(ALPHA_BG, 59, 120, 255, 0x00, 0x00, 0x00, 12)
 
#define RzColor_GRAY   RzColor_BBLACK
 
#define RzColor_BGGRAY   RzColor_BBGBLACK
 
#define Colors_PLAIN
 
#define DOT_STYLE_NORMAL   0
 
#define DOT_STYLE_CONDITIONAL   1
 
#define DOT_STYLE_BACKEDGE   2
 
#define LINE_VERT   0
 
#define LINE_CROSS   1
 
#define LINE_HORIZ   2
 
#define LINE_UP   3
 
#define CORNER_TL   6
 
#define CORNER_BR   4
 
#define CORNER_BL   5
 
#define CORNER_TR   6
 
#define ARROW_RIGHT   8
 
#define ARROW_LEFT   9
 
#define SELF_LOOP   10
 
#define RZ_LINE_BUFSIZE   4096
 
#define RZ_LINE_HISTSIZE   256
 
#define RZ_EDGES_X_INC   4
 
#define RZ_SELWIDGET_MAXH   15
 
#define RZ_SELWIDGET_MAXW   30
 
#define RZ_SELWIDGET_DIR_UP   0
 
#define RZ_SELWIDGET_DIR_DOWN   1
 

Typedefs

typedef int(* RzConsGetSize) (int *rows)
 
typedef int(* RzConsGetCursor) (RZ_NONNULL int *rows)
 
typedef bool(* RzConsIsBreaked) (void)
 
typedef void(* RzConsFlush) (void)
 
typedef void(* RzConsGrepCallback) (const char *grep)
 
typedef struct rz_cons_bind_t RzConsBind
 
typedef struct rz_cons_grep_t RzConsGrep
 
typedef struct rcolor_t RzColor
 
typedef struct rz_cons_palette_t RzConsPalette
 
typedef struct rz_cons_printable_palette_t RzConsPrintablePalette
 
typedef void(* RzConsEvent) (void *)
 
typedef struct rz_cons_canvas_t RzConsCanvas
 
typedef char *(* RzConsEditorCallback) (void *core, const char *file, const char *str)
 
typedef int(* RzConsClickCallback) (void *core, int x, int y)
 
typedef void(* RzConsBreakCallback) (void *core)
 
typedef void *(* RzConsSleepBeginCallback) (void *core)
 
typedef void(* RzConsSleepEndCallback) (void *core, void *user)
 
typedef void(* RzConsQueueTaskOneshot) (void *core, void *task, void *user)
 
typedef void(* RzConsFunctionKey) (void *core, int fkey)
 
typedef struct rz_cons_input_context_t RzConsInputContext
 
typedef struct rz_cons_context_t RzConsContext
 
typedef struct rz_cons_t RzCons
 
typedef struct rz_cons_canvas_line_style_t RzCanvasLineStyle
 
typedef struct rz_selection_widget_t RzSelWidget
 
typedef struct rz_line_hist_t RzLineHistory
 
typedef struct rz_line_buffer_t RzLineBuffer
 
typedef struct rz_hud_t RzLineHud
 
typedef struct rz_line_t RzLine
 
typedef struct rz_line_comp_t RzLineCompletion
 
typedef int(* RzLineCompletionCb) (RzLineCompletion *completion, RzLineBuffer *buf, RzLinePromptType prompt_type, void *user)
 
typedef struct rz_line_ns_completion_t RzLineNSCompletion
 
typedef struct rz_line_ns_completion_result_t RzLineNSCompletionResult
 
typedef RzLineNSCompletionResult *(* RzLineNSCompletionCb) (RzLineBuffer *buf, RzLinePromptType prompt_type, void *user)
 
typedef char *(* RzLineEditorCb) (void *core, const char *str)
 
typedef int(* RzLineHistoryUpCb) (RzLine *line)
 
typedef int(* RzLineHistoryDownCb) (RzLine *line)
 
typedef int(* RzPanelsMenuCallback) (void *user)
 
typedef struct rz_panels_menu_item RzPanelsMenuItem
 
typedef struct rz_panels_menu_t RzPanelsMenu
 
typedef struct rz_panels_t RzPanels
 
typedef struct rz_panels_root_t RzPanelsRoot
 

Enumerations

enum  { ALPHA_RESET = 0x00 , ALPHA_FG = 0x01 , ALPHA_BG = 0x02 , ALPHA_FGBG = 0x03 }
 
enum  {
  RZ_CONS_ATTR_BOLD = 1u << 1 , RZ_CONS_ATTR_DIM = 1u << 2 , RZ_CONS_ATTR_ITALIC = 1u << 3 , RZ_CONS_ATTR_UNDERLINE = 1u << 4 ,
  RZ_CONS_ATTR_BLINK = 1u << 5
}
 
enum  RzConsColorMode { COLOR_MODE_DISABLED = 0 , COLOR_MODE_16 , COLOR_MODE_256 , COLOR_MODE_16M }
 
enum  RzVirtTermMode { RZ_VIRT_TERM_MODE_DISABLE = 0 , RZ_VIRT_TERM_MODE_OUTPUT_ONLY , RZ_VIRT_TERM_MODE_COMPLETE }
 
enum  RzConsPalSeekMode { RZ_CONS_PAL_SEEK_PREVIOUS , RZ_CONS_PAL_SEEK_NEXT }
 
enum  {
  PAL_PROMPT = 0 , PAL_ADDRESS , PAL_DEFAULT , PAL_CHANGED ,
  PAL_JUMP , PAL_CALL , PAL_PUSH , PAL_TRAP ,
  PAL_CMP , PAL_RET , PAL_NOP , PAL_METADATA ,
  PAL_HEADER , PAL_PRINTABLE , PAL_LINES0 , PAL_LINES1 ,
  PAL_LINES2 , PAL_00 , PAL_7F , PAL_FF
}
 
enum  {
  LINE_NONE = 0 , LINE_TRUE , LINE_FALSE , LINE_UNCJMP ,
  LINE_NOSYM_VERT , LINE_NOSYM_HORIZ
}
 
enum  RViMode { INSERT_MODE = 'i' , CONTROL_MODE = 'c' }
 
enum  RzLinePromptType { RZ_LINE_PROMPT_DEFAULT , RZ_LINE_PROMPT_OFFSET , RZ_LINE_PROMPT_FILE }
 
enum  RzPanelsMode {
  PANEL_MODE_DEFAULT , PANEL_MODE_MENU , PANEL_MODE_ZOOM , PANEL_MODE_WINDOW ,
  PANEL_MODE_HELP
}
 
enum  RzPanelsLayout { PANEL_LAYOUT_DEFAULT_STATIC = 0 , PANEL_LAYOUT_DEFAULT_DYNAMIC = 1 }
 
enum  RzPanelsRootState { DEFAULT , ROTATE , DEL , QUIT }
 

Functions

 RZ_LIB_VERSION_HEADER (rz_cons)
 

Macro Definition Documentation

◆ ARROW_LEFT

#define ARROW_LEFT   9

Definition at line 803 of file rz_cons.h.

◆ ARROW_RIGHT

#define ARROW_RIGHT   8

Definition at line 802 of file rz_cons.h.

◆ Color_BBGBLACK

#define Color_BBGBLACK   Color_BGGRAY

Definition at line 641 of file rz_cons.h.

◆ Color_BBGBLUE

#define Color_BBGBLUE   "\x1b[104m"

Definition at line 655 of file rz_cons.h.

◆ Color_BBGCYAN

#define Color_BBGCYAN   "\x1b[106m"

Definition at line 653 of file rz_cons.h.

◆ Color_BBGGREEN

#define Color_BBGGREEN   "\x1b[102m"

Definition at line 647 of file rz_cons.h.

◆ Color_BBGMAGENTA

#define Color_BBGMAGENTA   "\x1b[105m"

Definition at line 649 of file rz_cons.h.

◆ Color_BBGRED

#define Color_BBGRED   "\x1b[101m"

Definition at line 643 of file rz_cons.h.

◆ Color_BBGWHITE

#define Color_BBGWHITE   "\x1b[107m"

Definition at line 645 of file rz_cons.h.

◆ Color_BBGYELLOW

#define Color_BBGYELLOW   "\x1b[103m"

Definition at line 651 of file rz_cons.h.

◆ Color_BBLACK

#define Color_BBLACK   Color_GRAY

Definition at line 640 of file rz_cons.h.

◆ Color_BBLUE

#define Color_BBLUE   "\x1b[94m"

Definition at line 654 of file rz_cons.h.

◆ Color_BCYAN

#define Color_BCYAN   "\x1b[96m"

Definition at line 652 of file rz_cons.h.

◆ Color_BGBLACK

#define Color_BGBLACK   "\x1b[40m"

Definition at line 622 of file rz_cons.h.

◆ Color_BGBLUE

#define Color_BGBLUE   "\x1b[44m"

Definition at line 636 of file rz_cons.h.

◆ Color_BGCYAN

#define Color_BGCYAN   "\x1b[46m"

Definition at line 634 of file rz_cons.h.

◆ Color_BGGRAY

#define Color_BGGRAY   "\x1b[100m"

Definition at line 638 of file rz_cons.h.

◆ Color_BGGREEN

#define Color_BGGREEN   "\x1b[42m"

Definition at line 628 of file rz_cons.h.

◆ Color_BGMAGENTA

#define Color_BGMAGENTA   "\x1b[45m"

Definition at line 630 of file rz_cons.h.

◆ Color_BGRED

#define Color_BGRED   "\x1b[41m"

Definition at line 624 of file rz_cons.h.

◆ Color_BGREEN

#define Color_BGREEN   "\x1b[92m"

Definition at line 646 of file rz_cons.h.

◆ Color_BGWHITE

#define Color_BGWHITE   "\x1b[47m"

Definition at line 626 of file rz_cons.h.

◆ Color_BGYELLOW

#define Color_BGYELLOW   "\x1b[43m"

Definition at line 632 of file rz_cons.h.

◆ Color_BLACK

#define Color_BLACK   "\x1b[30m"

Definition at line 621 of file rz_cons.h.

◆ Color_BLINK

#define Color_BLINK   "\x1b[5m"

Definition at line 605 of file rz_cons.h.

◆ Color_BLUE

#define Color_BLUE   "\x1b[34m"

Definition at line 635 of file rz_cons.h.

◆ Color_BMAGENTA

#define Color_BMAGENTA   "\x1b[95m"

Definition at line 648 of file rz_cons.h.

◆ Color_BRED

#define Color_BRED   "\x1b[91m"

Definition at line 642 of file rz_cons.h.

◆ Color_BWHITE

#define Color_BWHITE   "\x1b[97m"

Definition at line 644 of file rz_cons.h.

◆ Color_BYELLOW

#define Color_BYELLOW   "\x1b[93m"

Definition at line 650 of file rz_cons.h.

◆ Color_CYAN

#define Color_CYAN   "\x1b[36m"

Definition at line 633 of file rz_cons.h.

◆ Color_GRAY

#define Color_GRAY   "\x1b[90m"

Definition at line 637 of file rz_cons.h.

◆ Color_GREEN

#define Color_GREEN   "\x1b[32m"

Definition at line 627 of file rz_cons.h.

◆ Color_INVERT

#define Color_INVERT   "\x1b[7m"

Definition at line 606 of file rz_cons.h.

◆ Color_INVERT_RESET

#define Color_INVERT_RESET   "\x1b[27m"

Definition at line 607 of file rz_cons.h.

◆ Color_MAGENTA

#define Color_MAGENTA   "\x1b[35m"

Definition at line 629 of file rz_cons.h.

◆ Color_RED

#define Color_RED   "\x1b[31m"

Definition at line 623 of file rz_cons.h.

◆ Color_RESET

#define Color_RESET   "\x1b[0m" /* reset all */

Definition at line 617 of file rz_cons.h.

◆ Color_RESET_ALL

#define Color_RESET_ALL   "\x1b[0m\x1b[49m"

Definition at line 620 of file rz_cons.h.

◆ Color_RESET_BG

#define Color_RESET_BG   "\x1b[49m"

Definition at line 619 of file rz_cons.h.

◆ Color_RESET_NOBG

#define Color_RESET_NOBG   "\x1b[27;22;24;25;28;39m" /* Reset everything except background (order is important) */

Definition at line 618 of file rz_cons.h.

◆ Color_RESET_TERMINAL

#define Color_RESET_TERMINAL
Value:
"\x1b" \
"c\x1b(K\x1b[0m\x1b[J\x1b[?25h"

Definition at line 615 of file rz_cons.h.

◆ Color_WHITE

#define Color_WHITE   "\x1b[37m"

Definition at line 625 of file rz_cons.h.

◆ Color_YELLOW

#define Color_YELLOW   "\x1b[33m"

Definition at line 631 of file rz_cons.h.

◆ Colors_PLAIN

#define Colors_PLAIN
Value:
{ \
Color_BLACK, Color_RED, Color_WHITE, \
Color_GREEN, Color_MAGENTA, Color_YELLOW, \
Color_CYAN, Color_BLUE, Color_GRAY \
}
#define Color_WHITE
Definition: rz_cons.h:625
#define Color_MAGENTA
Definition: rz_cons.h:629
#define Color_RED
Definition: rz_cons.h:623
#define Color_YELLOW
Definition: rz_cons.h:631
#define Color_BLUE
Definition: rz_cons.h:635
#define Color_GRAY
Definition: rz_cons.h:637

Definition at line 738 of file rz_cons.h.

◆ CONS_BUFSZ

#define CONS_BUFSZ   0x4f00

Definition at line 42 of file rz_cons.h.

◆ CONS_COLORS_SIZE

#define CONS_COLORS_SIZE   21

Definition at line 47 of file rz_cons.h.

◆ CONS_MAX_ATTR_SZ

#define CONS_MAX_ATTR_SZ   16

Definition at line 348 of file rz_cons.h.

◆ CONS_MAX_USER

#define CONS_MAX_USER   102400

Definition at line 41 of file rz_cons.h.

◆ CONS_PALETTE_SIZE

#define CONS_PALETTE_SIZE   22

Definition at line 46 of file rz_cons.h.

◆ CORNER_BL

#define CORNER_BL   5

Definition at line 800 of file rz_cons.h.

◆ CORNER_BR

#define CORNER_BR   4

Definition at line 799 of file rz_cons.h.

◆ CORNER_TL

#define CORNER_TL   6

Definition at line 798 of file rz_cons.h.

◆ CORNER_TR

#define CORNER_TR   6

Definition at line 801 of file rz_cons.h.

◆ DOT_STYLE_BACKEDGE

#define DOT_STYLE_BACKEDGE   2

Definition at line 785 of file rz_cons.h.

◆ DOT_STYLE_CONDITIONAL

#define DOT_STYLE_CONDITIONAL   1

Definition at line 784 of file rz_cons.h.

◆ DOT_STYLE_NORMAL

#define DOT_STYLE_NORMAL   0

Definition at line 783 of file rz_cons.h.

◆ HUD_BUF_SIZE

#define HUD_BUF_SIZE   512

Definition at line 499 of file rz_cons.h.

◆ LINE_CROSS

#define LINE_CROSS   1

Definition at line 795 of file rz_cons.h.

◆ LINE_HORIZ

#define LINE_HORIZ   2

Definition at line 796 of file rz_cons.h.

◆ LINE_UP

#define LINE_UP   3

Definition at line 797 of file rz_cons.h.

◆ LINE_VERT

#define LINE_VERT   0

Definition at line 794 of file rz_cons.h.

◆ RUNE_ARROW_DOWN

#define RUNE_ARROW_DOWN   "ᐯ"

Definition at line 412 of file rz_cons.h.

◆ RUNE_ARROW_LEFT

#define RUNE_ARROW_LEFT   "ᐸ"

Definition at line 410 of file rz_cons.h.

◆ RUNE_ARROW_RIGHT

#define RUNE_ARROW_RIGHT   "ᐳ"

Definition at line 409 of file rz_cons.h.

◆ RUNE_ARROW_UP

#define RUNE_ARROW_UP   "ᐱ"

Definition at line 411 of file rz_cons.h.

◆ RUNE_CORNER_BL

#define RUNE_CORNER_BL   "└"

Definition at line 406 of file rz_cons.h.

◆ RUNE_CORNER_BR

#define RUNE_CORNER_BR   "┘"

Definition at line 405 of file rz_cons.h.

◆ RUNE_CORNER_TL

#define RUNE_CORNER_TL   "┌"

Definition at line 407 of file rz_cons.h.

◆ RUNE_CORNER_TR

#define RUNE_CORNER_TR   "┐"

Definition at line 408 of file rz_cons.h.

◆ RUNE_CURVE_CORNER_BL

#define RUNE_CURVE_CORNER_BL   "╰"

Definition at line 416 of file rz_cons.h.

◆ RUNE_CURVE_CORNER_BR

#define RUNE_CURVE_CORNER_BR   "╯"

Definition at line 415 of file rz_cons.h.

◆ RUNE_CURVE_CORNER_TL

#define RUNE_CURVE_CORNER_TL   "╭"

Definition at line 413 of file rz_cons.h.

◆ RUNE_CURVE_CORNER_TR

#define RUNE_CURVE_CORNER_TR   "╮"

Definition at line 414 of file rz_cons.h.

◆ RUNE_LINE_CROSS

#define RUNE_LINE_CROSS   "┼" /* ├ */

Definition at line 402 of file rz_cons.h.

◆ RUNE_LINE_HORIZ

#define RUNE_LINE_HORIZ   "─"

Definition at line 403 of file rz_cons.h.

◆ RUNE_LINE_UP

#define RUNE_LINE_UP   "↑"

Definition at line 404 of file rz_cons.h.

◆ RUNE_LINE_VERT

#define RUNE_LINE_VERT   "│"

Definition at line 401 of file rz_cons.h.

◆ RUNE_LONG_LINE_HORIZ

#define RUNE_LONG_LINE_HORIZ   "―"

Definition at line 417 of file rz_cons.h.

◆ RUNECODE_ARROW_LEFT

#define RUNECODE_ARROW_LEFT   0xcd

Definition at line 373 of file rz_cons.h.

◆ RUNECODE_ARROW_RIGHT

#define RUNECODE_ARROW_RIGHT   0xcc

Definition at line 372 of file rz_cons.h.

◆ RUNECODE_CORNER_BL

#define RUNECODE_CORNER_BL   0xcb

Definition at line 371 of file rz_cons.h.

◆ RUNECODE_CORNER_BR

#define RUNECODE_CORNER_BR   0xca

Definition at line 370 of file rz_cons.h.

◆ RUNECODE_CORNER_TL

#define RUNECODE_CORNER_TL   0xcf

Definition at line 375 of file rz_cons.h.

◆ RUNECODE_CORNER_TR

#define RUNECODE_CORNER_TR   0xd0

Definition at line 376 of file rz_cons.h.

◆ RUNECODE_CURVE_CORNER_BL

#define RUNECODE_CURVE_CORNER_BL   0xd5

Definition at line 381 of file rz_cons.h.

◆ RUNECODE_CURVE_CORNER_BR

#define RUNECODE_CURVE_CORNER_BR   0xd4

Definition at line 380 of file rz_cons.h.

◆ RUNECODE_CURVE_CORNER_TL

#define RUNECODE_CURVE_CORNER_TL   0xd2

Definition at line 378 of file rz_cons.h.

◆ RUNECODE_CURVE_CORNER_TR

#define RUNECODE_CURVE_CORNER_TR   0xd3

Definition at line 379 of file rz_cons.h.

◆ RUNECODE_LINE_CROSS

#define RUNECODE_LINE_CROSS   0xc9

Definition at line 369 of file rz_cons.h.

◆ RUNECODE_LINE_HORIZ

#define RUNECODE_LINE_HORIZ   0xce

Definition at line 374 of file rz_cons.h.

◆ RUNECODE_LINE_UP

#define RUNECODE_LINE_UP   0xd1

Definition at line 377 of file rz_cons.h.

◆ RUNECODE_LINE_VERT

#define RUNECODE_LINE_VERT   0xc8

Definition at line 368 of file rz_cons.h.

◆ RUNECODE_MAX

#define RUNECODE_MAX   0xd6

Definition at line 382 of file rz_cons.h.

◆ RUNECODE_MIN

#define RUNECODE_MIN   0xc8

Definition at line 367 of file rz_cons.h.

◆ RUNECODESTR_ARROW_LEFT

#define RUNECODESTR_ARROW_LEFT   "\xcd"

Definition at line 390 of file rz_cons.h.

◆ RUNECODESTR_ARROW_RIGHT

#define RUNECODESTR_ARROW_RIGHT   "\xcc"

Definition at line 389 of file rz_cons.h.

◆ RUNECODESTR_CORNER_BL

#define RUNECODESTR_CORNER_BL   "\xcb"

Definition at line 388 of file rz_cons.h.

◆ RUNECODESTR_CORNER_BR

#define RUNECODESTR_CORNER_BR   "\xca"

Definition at line 387 of file rz_cons.h.

◆ RUNECODESTR_CORNER_TL

#define RUNECODESTR_CORNER_TL   "\xcf"

Definition at line 392 of file rz_cons.h.

◆ RUNECODESTR_CORNER_TR

#define RUNECODESTR_CORNER_TR   "\xd0"

Definition at line 393 of file rz_cons.h.

◆ RUNECODESTR_CURVE_CORNER_BL

#define RUNECODESTR_CURVE_CORNER_BL   "\xd5"

Definition at line 398 of file rz_cons.h.

◆ RUNECODESTR_CURVE_CORNER_BR

#define RUNECODESTR_CURVE_CORNER_BR   "\xd4"

Definition at line 397 of file rz_cons.h.

◆ RUNECODESTR_CURVE_CORNER_TL

#define RUNECODESTR_CURVE_CORNER_TL   "\xd2"

Definition at line 395 of file rz_cons.h.

◆ RUNECODESTR_CURVE_CORNER_TR

#define RUNECODESTR_CURVE_CORNER_TR   "\xd3"

Definition at line 396 of file rz_cons.h.

◆ RUNECODESTR_LINE_CROSS

#define RUNECODESTR_LINE_CROSS   "\xc9"

Definition at line 386 of file rz_cons.h.

◆ RUNECODESTR_LINE_HORIZ

#define RUNECODESTR_LINE_HORIZ   "\xce"

Definition at line 391 of file rz_cons.h.

◆ RUNECODESTR_LINE_UP

#define RUNECODESTR_LINE_UP   "\xd1"

Definition at line 394 of file rz_cons.h.

◆ RUNECODESTR_LINE_VERT

#define RUNECODESTR_LINE_VERT   "\xc8"

Definition at line 385 of file rz_cons.h.

◆ RUNECODESTR_MAX

#define RUNECODESTR_MAX   0xd5

Definition at line 399 of file rz_cons.h.

◆ RUNECODESTR_MIN

#define RUNECODESTR_MIN   0xc8

Definition at line 384 of file rz_cons.h.

◆ RZ_CONS_CLEAR_FROM_CURSOR_TO_END

#define RZ_CONS_CLEAR_FROM_CURSOR_TO_END   "\x1b[0J\r"

Definition at line 595 of file rz_cons.h.

◆ RZ_CONS_CLEAR_LINE

#define RZ_CONS_CLEAR_LINE   "\x1b[2K\r"

Definition at line 593 of file rz_cons.h.

◆ RZ_CONS_CLEAR_SCREEN

#define RZ_CONS_CLEAR_SCREEN   "\x1b[2J\r"

Definition at line 594 of file rz_cons.h.

◆ RZ_CONS_CMD_DEPTH

#define RZ_CONS_CMD_DEPTH   100

Definition at line 55 of file rz_cons.h.

◆ RZ_CONS_CURSOR_DOWN

#define RZ_CONS_CURSOR_DOWN   "\x1b[B"

Definition at line 601 of file rz_cons.h.

◆ RZ_CONS_CURSOR_LEFT

#define RZ_CONS_CURSOR_LEFT   "\x1b[D"

Definition at line 603 of file rz_cons.h.

◆ RZ_CONS_CURSOR_RESTORE

#define RZ_CONS_CURSOR_RESTORE   "\x1b[u"

Definition at line 598 of file rz_cons.h.

◆ RZ_CONS_CURSOR_RIGHT

#define RZ_CONS_CURSOR_RIGHT   "\x1b[C"

Definition at line 602 of file rz_cons.h.

◆ RZ_CONS_CURSOR_SAVE

#define RZ_CONS_CURSOR_SAVE   "\x1b[s"

Definition at line 597 of file rz_cons.h.

◆ RZ_CONS_CURSOR_UP

#define RZ_CONS_CURSOR_UP   "\x1b[A"

Definition at line 600 of file rz_cons.h.

◆ RZ_CONS_GET_CURSOR_POSITION

#define RZ_CONS_GET_CURSOR_POSITION   "\x1b[6n"

Definition at line 599 of file rz_cons.h.

◆ RZ_CONS_GREP_TOKENS

#define RZ_CONS_GREP_TOKENS   64

Definition at line 51 of file rz_cons.h.

◆ RZ_CONS_GREP_WORD_SIZE

#define RZ_CONS_GREP_WORD_SIZE   64

Definition at line 50 of file rz_cons.h.

◆ RZ_CONS_GREP_WORDS

#define RZ_CONS_GREP_WORDS   10

Definition at line 49 of file rz_cons.h.

◆ RZ_CONS_KEY_ESC

#define RZ_CONS_KEY_ESC   0x1b

Definition at line 591 of file rz_cons.h.

◆ RZ_CONS_KEY_F1

#define RZ_CONS_KEY_F1   0xf1

Definition at line 578 of file rz_cons.h.

◆ RZ_CONS_KEY_F10

#define RZ_CONS_KEY_F10   0xfa

Definition at line 587 of file rz_cons.h.

◆ RZ_CONS_KEY_F11

#define RZ_CONS_KEY_F11   0xfb

Definition at line 588 of file rz_cons.h.

◆ RZ_CONS_KEY_F12

#define RZ_CONS_KEY_F12   0xfc

Definition at line 589 of file rz_cons.h.

◆ RZ_CONS_KEY_F2

#define RZ_CONS_KEY_F2   0xf2

Definition at line 579 of file rz_cons.h.

◆ RZ_CONS_KEY_F3

#define RZ_CONS_KEY_F3   0xf3

Definition at line 580 of file rz_cons.h.

◆ RZ_CONS_KEY_F4

#define RZ_CONS_KEY_F4   0xf4

Definition at line 581 of file rz_cons.h.

◆ RZ_CONS_KEY_F5

#define RZ_CONS_KEY_F5   0xf5

Definition at line 582 of file rz_cons.h.

◆ RZ_CONS_KEY_F6

#define RZ_CONS_KEY_F6   0xf6

Definition at line 583 of file rz_cons.h.

◆ RZ_CONS_KEY_F7

#define RZ_CONS_KEY_F7   0xf7

Definition at line 584 of file rz_cons.h.

◆ RZ_CONS_KEY_F8

#define RZ_CONS_KEY_F8   0xf8

Definition at line 585 of file rz_cons.h.

◆ RZ_CONS_KEY_F9

#define RZ_CONS_KEY_F9   0xf9

Definition at line 586 of file rz_cons.h.

◆ RZ_EDGES_X_INC

#define RZ_EDGES_X_INC   4

Definition at line 994 of file rz_cons.h.

◆ RZ_LINE_BUFSIZE

#define RZ_LINE_BUFSIZE   4096

Definition at line 991 of file rz_cons.h.

◆ RZ_LINE_HISTSIZE

#define RZ_LINE_HISTSIZE   256

Definition at line 992 of file rz_cons.h.

◆ RZ_SELWIDGET_DIR_DOWN

#define RZ_SELWIDGET_DIR_DOWN   1

Definition at line 999 of file rz_cons.h.

◆ RZ_SELWIDGET_DIR_UP

#define RZ_SELWIDGET_DIR_UP   0

Definition at line 998 of file rz_cons.h.

◆ RZ_SELWIDGET_MAXH

#define RZ_SELWIDGET_MAXH   15

Definition at line 996 of file rz_cons.h.

◆ RZ_SELWIDGET_MAXW

#define RZ_SELWIDGET_MAXW   30

Definition at line 997 of file rz_cons.h.

◆ RZCOLOR

#define RZCOLOR (   a,
  r,
  g,
  b,
  bgr,
  bgg,
  bgb,
  id16 
)     (RzColor) { 0, a, r, g, b, bgr, bgg, bgb, id16 }

Definition at line 661 of file rz_cons.h.

◆ RzColor_BBGBLACK

#define RzColor_BBGBLACK   RZCOLOR(ALPHA_BG, 118, 118, 118, 0x00, 0x00, 0x00, 8)

Definition at line 719 of file rz_cons.h.

◆ RzColor_BBGBLUE

#define RzColor_BBGBLUE   RZCOLOR(ALPHA_BG, 59, 120, 255, 0x00, 0x00, 0x00, 12)

Definition at line 733 of file rz_cons.h.

◆ RzColor_BBGCYAN

#define RzColor_BBGCYAN   RZCOLOR(ALPHA_BG, 97, 214, 214, 0x00, 0x00, 0x00, 14)

Definition at line 731 of file rz_cons.h.

◆ RzColor_BBGGREEN

#define RzColor_BBGGREEN   RZCOLOR(ALPHA_BG, 22, 198, 12, 0x00, 0x00, 0x00, 10)

Definition at line 725 of file rz_cons.h.

◆ RzColor_BBGMAGENTA

#define RzColor_BBGMAGENTA   RZCOLOR(ALPHA_BG, 180, 0, 158, 0x00, 0x00, 0x00, 13)

Definition at line 727 of file rz_cons.h.

◆ RzColor_BBGRED

#define RzColor_BBGRED   RZCOLOR(ALPHA_BG, 231, 72, 86, 0x00, 0x00, 0x00, 9)

Definition at line 721 of file rz_cons.h.

◆ RzColor_BBGWHITE

#define RzColor_BBGWHITE   RZCOLOR(ALPHA_BG, 242, 242, 242, 0x00, 0x00, 0x00, 15)

Definition at line 723 of file rz_cons.h.

◆ RzColor_BBGYELLOW

#define RzColor_BBGYELLOW   RZCOLOR(ALPHA_BG, 249, 241, 165, 0x00, 0x00, 0x00, 11)

Definition at line 729 of file rz_cons.h.

◆ RzColor_BBLACK

#define RzColor_BBLACK   RZCOLOR(ALPHA_FG, 118, 118, 118, 0x00, 0x00, 0x00, 8)

Definition at line 718 of file rz_cons.h.

◆ RzColor_BBLUE

#define RzColor_BBLUE   RZCOLOR(ALPHA_FG, 59, 120, 255, 0x00, 0x00, 0x00, 12)

Definition at line 732 of file rz_cons.h.

◆ RzColor_BCYAN

#define RzColor_BCYAN   RZCOLOR(ALPHA_FG, 97, 214, 214, 0x00, 0x00, 0x00, 14)

Definition at line 730 of file rz_cons.h.

◆ RzColor_BGBLACK

#define RzColor_BGBLACK   RZCOLOR(ALPHA_BG, 12, 12, 12, 0x00, 0x00, 0x00, 0)

Definition at line 703 of file rz_cons.h.

◆ RzColor_BGBLUE

#define RzColor_BGBLUE   RZCOLOR(ALPHA_BG, 0, 55, 218, 0x00, 0x00, 0x00, 4)

Definition at line 717 of file rz_cons.h.

◆ RzColor_BGCYAN

#define RzColor_BGCYAN   RZCOLOR(ALPHA_BG, 58, 150, 221, 0x00, 0x00, 0x00, 6)

Definition at line 715 of file rz_cons.h.

◆ RzColor_BGGRAY

#define RzColor_BGGRAY   RzColor_BBGBLACK

Definition at line 736 of file rz_cons.h.

◆ RzColor_BGGREEN

#define RzColor_BGGREEN   RZCOLOR(ALPHA_BG, 19, 161, 14, 0x00, 0x00, 0x00, 2)

Definition at line 709 of file rz_cons.h.

◆ RzColor_BGMAGENTA

#define RzColor_BGMAGENTA   RZCOLOR(ALPHA_BG, 136, 23, 152, 0x00, 0x00, 0x00, 5)

Definition at line 711 of file rz_cons.h.

◆ RzColor_BGRED

#define RzColor_BGRED   RZCOLOR(ALPHA_BG, 197, 15, 31, 0x00, 0x00, 0x00, 1)

Definition at line 705 of file rz_cons.h.

◆ RzColor_BGREEN

#define RzColor_BGREEN   RZCOLOR(ALPHA_FG, 22, 198, 12, 0x00, 0x00, 0x00, 10)

Definition at line 724 of file rz_cons.h.

◆ RzColor_BGWHITE

#define RzColor_BGWHITE   RZCOLOR(ALPHA_BG, 204, 204, 204, 0x00, 0x00, 0x00, 7)

Definition at line 707 of file rz_cons.h.

◆ RzColor_BGYELLOW

#define RzColor_BGYELLOW   RZCOLOR(ALPHA_BG, 193, 156, 0, 0x00, 0x00, 0x00, 3)

Definition at line 713 of file rz_cons.h.

◆ RzColor_BLACK

#define RzColor_BLACK   RZCOLOR(ALPHA_FG, 12, 12, 12, 0x00, 0x00, 0x00, 0)

Definition at line 702 of file rz_cons.h.

◆ RzColor_BLUE

#define RzColor_BLUE   RZCOLOR(ALPHA_FG, 0, 55, 218, 0x00, 0x00, 0x00, 4)

Definition at line 716 of file rz_cons.h.

◆ RzColor_BMAGENTA

#define RzColor_BMAGENTA   RZCOLOR(ALPHA_FG, 180, 0, 158, 0x00, 0x00, 0x00, 13)

Definition at line 726 of file rz_cons.h.

◆ RzColor_BRED

#define RzColor_BRED   RZCOLOR(ALPHA_FG, 231, 72, 86, 0x00, 0x00, 0x00, 9)

Definition at line 720 of file rz_cons.h.

◆ RzColor_BWHITE

#define RzColor_BWHITE   RZCOLOR(ALPHA_FG, 242, 242, 242, 0x00, 0x00, 0x00, 15)

Definition at line 722 of file rz_cons.h.

◆ RzColor_BYELLOW

#define RzColor_BYELLOW   RZCOLOR(ALPHA_FG, 249, 241, 165, 0x00, 0x00, 0x00, 11)

Definition at line 728 of file rz_cons.h.

◆ RzColor_CYAN

#define RzColor_CYAN   RZCOLOR(ALPHA_FG, 58, 150, 221, 0x00, 0x00, 0x00, 6)

Definition at line 714 of file rz_cons.h.

◆ RzColor_GRAY

#define RzColor_GRAY   RzColor_BBLACK

Definition at line 735 of file rz_cons.h.

◆ RzColor_GREEN

#define RzColor_GREEN   RZCOLOR(ALPHA_FG, 19, 161, 14, 0x00, 0x00, 0x00, 2)

Definition at line 708 of file rz_cons.h.

◆ RzColor_MAGENTA

#define RzColor_MAGENTA   RZCOLOR(ALPHA_FG, 136, 23, 152, 0x00, 0x00, 0x00, 5)

Definition at line 710 of file rz_cons.h.

◆ RzColor_NULL

#define RzColor_NULL   RZCOLOR(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1)

Definition at line 664 of file rz_cons.h.

◆ RzColor_RED

#define RzColor_RED   RZCOLOR(ALPHA_FG, 197, 15, 31, 0x00, 0x00, 0x00, 1)

Definition at line 704 of file rz_cons.h.

◆ RzColor_WHITE

#define RzColor_WHITE   RZCOLOR(ALPHA_FG, 204, 204, 204, 0x00, 0x00, 0x00, 7)

Definition at line 706 of file rz_cons.h.

◆ RzColor_YELLOW

#define RzColor_YELLOW   RZCOLOR(ALPHA_FG, 193, 156, 0, 0x00, 0x00, 0x00, 3)

Definition at line 712 of file rz_cons.h.

◆ SELF_LOOP

#define SELF_LOOP   10

Definition at line 804 of file rz_cons.h.

◆ STR_IS_NULL

#define STR_IS_NULL (   x)    (!x || !x[0])

Definition at line 43 of file rz_cons.h.

◆ UTF8_DOOR

#define UTF8_DOOR   "🚪"

Definition at line 428 of file rz_cons.h.

◆ UTF8_KEYBOARD

#define UTF8_KEYBOARD   "⌨"

Definition at line 426 of file rz_cons.h.

◆ UTF8_LEFT_POINTING_MAGNIFYING_GLASS

#define UTF8_LEFT_POINTING_MAGNIFYING_GLASS   "🔍"

Definition at line 427 of file rz_cons.h.

◆ UTF8_POLICE_CARS_REVOLVING_LIGHT

#define UTF8_POLICE_CARS_REVOLVING_LIGHT   "🚨"

Definition at line 422 of file rz_cons.h.

◆ UTF8_SEE_NO_EVIL_MONKEY

#define UTF8_SEE_NO_EVIL_MONKEY   "🙈"

Definition at line 424 of file rz_cons.h.

◆ UTF8_SKULL_AND_CROSSBONES

#define UTF8_SKULL_AND_CROSSBONES   "☠"

Definition at line 425 of file rz_cons.h.

◆ UTF8_VS16

#define UTF8_VS16   "\xef\xb8\x8f"

Definition at line 431 of file rz_cons.h.

◆ UTF8_WHITE_HEAVY_CHECK_MARK

#define UTF8_WHITE_HEAVY_CHECK_MARK   "✅"

Definition at line 423 of file rz_cons.h.

◆ UTF_BLOCK

#define UTF_BLOCK   "\u2588"

Definition at line 419 of file rz_cons.h.

◆ UTF_CIRCLE

#define UTF_CIRCLE   "\u25EF"

Definition at line 418 of file rz_cons.h.

Typedef Documentation

◆ RzCanvasLineStyle

◆ RzColor

typedef struct rcolor_t RzColor

◆ RzCons

typedef struct rz_cons_t RzCons

◆ RzConsBind

typedef struct rz_cons_bind_t RzConsBind

◆ RzConsBreakCallback

typedef void(* RzConsBreakCallback) (void *core)

Definition at line 435 of file rz_cons.h.

◆ RzConsCanvas

◆ RzConsClickCallback

typedef int(* RzConsClickCallback) (void *core, int x, int y)

Definition at line 434 of file rz_cons.h.

◆ RzConsContext

◆ RzConsEditorCallback

typedef char*(* RzConsEditorCallback) (void *core, const char *file, const char *str)

Definition at line 433 of file rz_cons.h.

◆ RzConsEvent

typedef void(* RzConsEvent) (void *)

Definition at line 346 of file rz_cons.h.

◆ RzConsFlush

typedef void(* RzConsFlush) (void)

Definition at line 60 of file rz_cons.h.

◆ RzConsFunctionKey

typedef void(* RzConsFunctionKey) (void *core, int fkey)

Definition at line 439 of file rz_cons.h.

◆ RzConsGetCursor

typedef int(* RzConsGetCursor) (RZ_NONNULL int *rows)

Definition at line 58 of file rz_cons.h.

◆ RzConsGetSize

typedef int(* RzConsGetSize) (int *rows)

Definition at line 57 of file rz_cons.h.

◆ RzConsGrep

typedef struct rz_cons_grep_t RzConsGrep

◆ RzConsGrepCallback

typedef void(* RzConsGrepCallback) (const char *grep)

Definition at line 61 of file rz_cons.h.

◆ RzConsInputContext

◆ RzConsIsBreaked

typedef bool(* RzConsIsBreaked) (void)

Definition at line 59 of file rz_cons.h.

◆ RzConsPalette

◆ RzConsPrintablePalette

◆ RzConsQueueTaskOneshot

typedef void(* RzConsQueueTaskOneshot) (void *core, void *task, void *user)

Definition at line 438 of file rz_cons.h.

◆ RzConsSleepBeginCallback

typedef void*(* RzConsSleepBeginCallback) (void *core)

Definition at line 436 of file rz_cons.h.

◆ RzConsSleepEndCallback

typedef void(* RzConsSleepEndCallback) (void *core, void *user)

Definition at line 437 of file rz_cons.h.

◆ RzLine

typedef struct rz_line_t RzLine

Definition at line 439 of file rz_cons.h.

◆ RzLineBuffer

◆ RzLineCompletion

Definition at line 439 of file rz_cons.h.

◆ RzLineCompletionCb

typedef int(* RzLineCompletionCb) (RzLineCompletion *completion, RzLineBuffer *buf, RzLinePromptType prompt_type, void *user)

Definition at line 1041 of file rz_cons.h.

◆ RzLineEditorCb

typedef char*(* RzLineEditorCb) (void *core, const char *str)

Definition at line 1084 of file rz_cons.h.

◆ RzLineHistory

typedef struct rz_line_hist_t RzLineHistory

◆ RzLineHistoryDownCb

typedef int(* RzLineHistoryDownCb) (RzLine *line)

Definition at line 1086 of file rz_cons.h.

◆ RzLineHistoryUpCb

typedef int(* RzLineHistoryUpCb) (RzLine *line)

Definition at line 1085 of file rz_cons.h.

◆ RzLineHud

typedef struct rz_hud_t RzLineHud

◆ RzLineNSCompletion

Definition at line 1041 of file rz_cons.h.

◆ RzLineNSCompletionCb

typedef RzLineNSCompletionResult*(* RzLineNSCompletionCb) (RzLineBuffer *buf, RzLinePromptType prompt_type, void *user)

Callback that analyze the current user input and provides options for autocompletion.

Parameters
bufRLineBuffer pointer, containing all the info about the current user input
prompt_typeType of prompt used
userUser data that was previously setup in RzLineNSCompletion

Definition at line 1074 of file rz_cons.h.

◆ RzLineNSCompletionResult

Result returned by a completion callback function. It includes all the information required to provide meaningful autocompletion suggestion to the user.

◆ RzPanels

typedef struct rz_panels_t RzPanels

◆ RzPanelsMenu

◆ RzPanelsMenuCallback

typedef int(* RzPanelsMenuCallback) (void *user)

Definition at line 1166 of file rz_cons.h.

◆ RzPanelsMenuItem

◆ RzPanelsRoot

◆ RzSelWidget

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ALPHA_RESET 
ALPHA_FG 
ALPHA_BG 
ALPHA_FGBG 

Definition at line 167 of file rz_cons.h.

167  { ALPHA_RESET = 0x00,
168  ALPHA_FG = 0x01,
169  ALPHA_BG = 0x02,
170  ALPHA_FGBG = 0x03 };
@ ALPHA_RESET
Definition: rz_cons.h:167
@ ALPHA_FGBG
Definition: rz_cons.h:170
@ ALPHA_FG
Definition: rz_cons.h:168
@ ALPHA_BG
Definition: rz_cons.h:169

◆ anonymous enum

anonymous enum
Enumerator
RZ_CONS_ATTR_BOLD 
RZ_CONS_ATTR_DIM 
RZ_CONS_ATTR_ITALIC 
RZ_CONS_ATTR_UNDERLINE 
RZ_CONS_ATTR_BLINK 

Definition at line 171 of file rz_cons.h.

171  { RZ_CONS_ATTR_BOLD = 1u << 1,
172  RZ_CONS_ATTR_DIM = 1u << 2,
173  RZ_CONS_ATTR_ITALIC = 1u << 3,
174  RZ_CONS_ATTR_UNDERLINE = 1u << 4,
175  RZ_CONS_ATTR_BLINK = 1u << 5
176 };
@ RZ_CONS_ATTR_BLINK
Definition: rz_cons.h:175
@ RZ_CONS_ATTR_ITALIC
Definition: rz_cons.h:173
@ RZ_CONS_ATTR_DIM
Definition: rz_cons.h:172
@ RZ_CONS_ATTR_UNDERLINE
Definition: rz_cons.h:174
@ RZ_CONS_ATTR_BOLD
Definition: rz_cons.h:171

◆ anonymous enum

anonymous enum
Enumerator
PAL_PROMPT 
PAL_ADDRESS 
PAL_DEFAULT 
PAL_CHANGED 
PAL_JUMP 
PAL_CALL 
PAL_PUSH 
PAL_TRAP 
PAL_CMP 
PAL_RET 
PAL_NOP 
PAL_METADATA 
PAL_HEADER 
PAL_PRINTABLE 
PAL_LINES0 
PAL_LINES1 
PAL_LINES2 
PAL_00 
PAL_7F 
PAL_FF 

Definition at line 745 of file rz_cons.h.

745  {
746  PAL_PROMPT = 0,
747  PAL_ADDRESS,
748  PAL_DEFAULT,
749  PAL_CHANGED,
750  PAL_JUMP,
751  PAL_CALL,
752  PAL_PUSH,
753  PAL_TRAP,
754  PAL_CMP,
755  PAL_RET,
756  PAL_NOP,
757  PAL_METADATA,
758  PAL_HEADER,
760  PAL_LINES0,
761  PAL_LINES1,
762  PAL_LINES2,
763  PAL_00,
764  PAL_7F,
765  PAL_FF
766 };
@ PAL_CHANGED
Definition: rz_cons.h:749
@ PAL_LINES2
Definition: rz_cons.h:762
@ PAL_METADATA
Definition: rz_cons.h:757
@ PAL_ADDRESS
Definition: rz_cons.h:747
@ PAL_TRAP
Definition: rz_cons.h:753
@ PAL_NOP
Definition: rz_cons.h:756
@ PAL_7F
Definition: rz_cons.h:764
@ PAL_PRINTABLE
Definition: rz_cons.h:759
@ PAL_LINES1
Definition: rz_cons.h:761
@ PAL_DEFAULT
Definition: rz_cons.h:748
@ PAL_JUMP
Definition: rz_cons.h:750
@ PAL_CALL
Definition: rz_cons.h:751
@ PAL_RET
Definition: rz_cons.h:755
@ PAL_FF
Definition: rz_cons.h:765
@ PAL_00
Definition: rz_cons.h:763
@ PAL_CMP
Definition: rz_cons.h:754
@ PAL_LINES0
Definition: rz_cons.h:760
@ PAL_HEADER
Definition: rz_cons.h:758
@ PAL_PUSH
Definition: rz_cons.h:752
@ PAL_PROMPT
Definition: rz_cons.h:746

◆ anonymous enum

anonymous enum
Enumerator
LINE_NONE 
LINE_TRUE 
LINE_FALSE 
LINE_UNCJMP 
LINE_NOSYM_VERT 
LINE_NOSYM_HORIZ 

Definition at line 769 of file rz_cons.h.

769  {
770  LINE_NONE = 0,
771  LINE_TRUE,
772  LINE_FALSE,
773  LINE_UNCJMP,
776 };
@ LINE_NOSYM_HORIZ
Definition: rz_cons.h:775
@ LINE_NOSYM_VERT
Definition: rz_cons.h:774
@ LINE_TRUE
Definition: rz_cons.h:771
@ LINE_NONE
Definition: rz_cons.h:770
@ LINE_FALSE
Definition: rz_cons.h:772
@ LINE_UNCJMP
Definition: rz_cons.h:773

◆ RViMode

enum RViMode
Enumerator
INSERT_MODE 
CONTROL_MODE 

Definition at line 778 of file rz_cons.h.

778  {
779  INSERT_MODE = 'i',
780  CONTROL_MODE = 'c'
781 } RViMode;
RViMode
Definition: rz_cons.h:778
@ CONTROL_MODE
Definition: rz_cons.h:780
@ INSERT_MODE
Definition: rz_cons.h:779

◆ RzConsColorMode

Enumerator
COLOR_MODE_DISABLED 
COLOR_MODE_16 
COLOR_MODE_256 
COLOR_MODE_16M 

Definition at line 441 of file rz_cons.h.

441  {
RzConsColorMode
Definition: rz_cons.h:441
@ COLOR_MODE_16
Definition: rz_cons.h:443
@ COLOR_MODE_16M
Definition: rz_cons.h:445
@ COLOR_MODE_256
Definition: rz_cons.h:444
@ COLOR_MODE_DISABLED
Definition: rz_cons.h:442

◆ RzConsPalSeekMode

Enumerator
RZ_CONS_PAL_SEEK_PREVIOUS 
RZ_CONS_PAL_SEEK_NEXT 

Definition at line 460 of file rz_cons.h.

460  {
RzConsPalSeekMode
Definition: rz_cons.h:460
@ RZ_CONS_PAL_SEEK_NEXT
Definition: rz_cons.h:462
@ RZ_CONS_PAL_SEEK_PREVIOUS
Definition: rz_cons.h:461

◆ RzLinePromptType

Enumerator
RZ_LINE_PROMPT_DEFAULT 
RZ_LINE_PROMPT_OFFSET 
RZ_LINE_PROMPT_FILE 

Definition at line 1037 of file rz_cons.h.

RzLinePromptType
Definition: rz_cons.h:1037
@ RZ_LINE_PROMPT_DEFAULT
Definition: rz_cons.h:1037
@ RZ_LINE_PROMPT_OFFSET
Definition: rz_cons.h:1038
@ RZ_LINE_PROMPT_FILE
Definition: rz_cons.h:1039

◆ RzPanelsLayout

Enumerator
PANEL_LAYOUT_DEFAULT_STATIC 
PANEL_LAYOUT_DEFAULT_DYNAMIC 

Definition at line 1191 of file rz_cons.h.

1191  {
1194 } RzPanelsLayout;
RzPanelsLayout
Definition: rz_cons.h:1191
@ PANEL_LAYOUT_DEFAULT_DYNAMIC
Definition: rz_cons.h:1193
@ PANEL_LAYOUT_DEFAULT_STATIC
Definition: rz_cons.h:1192

◆ RzPanelsMode

Enumerator
PANEL_MODE_DEFAULT 
PANEL_MODE_MENU 
PANEL_MODE_ZOOM 
PANEL_MODE_WINDOW 
PANEL_MODE_HELP 

Definition at line 1183 of file rz_cons.h.

1183  {
1189 } RzPanelsMode;
RzPanelsMode
Definition: rz_cons.h:1183
@ PANEL_MODE_MENU
Definition: rz_cons.h:1185
@ PANEL_MODE_DEFAULT
Definition: rz_cons.h:1184
@ PANEL_MODE_HELP
Definition: rz_cons.h:1188
@ PANEL_MODE_ZOOM
Definition: rz_cons.h:1186
@ PANEL_MODE_WINDOW
Definition: rz_cons.h:1187

◆ RzPanelsRootState

Enumerator
DEFAULT 
ROTATE 
DEL 
QUIT 

Definition at line 1225 of file rz_cons.h.

1225  {
1226  DEFAULT,
1227  ROTATE,
1228  DEL,
1229  QUIT,
RzPanelsRootState
Definition: rz_cons.h:1225
@ DEL
Definition: rz_cons.h:1228
@ ROTATE
Definition: rz_cons.h:1227
@ QUIT
Definition: rz_cons.h:1229
@ DEFAULT
Definition: rz_cons.h:1226

◆ RzVirtTermMode

Enumerator
RZ_VIRT_TERM_MODE_DISABLE 

Windows only: Use console c api for everything (Windows <= 8)

RZ_VIRT_TERM_MODE_OUTPUT_ONLY 

Windows only: Use console c api for input, but output on VT (Windows >= 10)

RZ_VIRT_TERM_MODE_COMPLETE 

All the sequences goes through VT (Windows Terminal, mintty, all OSs)

Definition at line 448 of file rz_cons.h.

448  {
RzVirtTermMode
Definition: rz_cons.h:448
@ RZ_VIRT_TERM_MODE_COMPLETE
All the sequences goes through VT (Windows Terminal, mintty, all OSs)
Definition: rz_cons.h:451
@ RZ_VIRT_TERM_MODE_OUTPUT_ONLY
Windows only: Use console c api for input, but output on VT (Windows >= 10)
Definition: rz_cons.h:450
@ RZ_VIRT_TERM_MODE_DISABLE
Windows only: Use console c api for everything (Windows <= 8)
Definition: rz_cons.h:449

Function Documentation

◆ RZ_LIB_VERSION_HEADER()

RZ_LIB_VERSION_HEADER ( rz_cons  )