RzCons#
- class RzCons#
- property blankline: int#
- property break_lines: bool#
- property break_word: str#
- property break_word_len: int#
- property cb_break: RzConsBreakCallback#
- property cb_click: RzConsClickCallback#
- property cb_editor: RzConsEditorCallback#
- property cb_fkey: RzConsFunctionKey#
- property cb_sleep_begin: RzConsSleepBeginCallback#
- property cb_sleep_end: RzConsSleepEndCallback#
- property cb_task_oneshot: RzConsQueueTaskOneshot#
- property click_set: bool#
- property click_x: int#
- property click_y: int#
- property columns: int#
- property context: RzConsContext#
- property dotted_lines: bool#
- property _echo: int#
- property _enable_highlight: bool#
- property event_data: Any#
- property event_resize: RzConsEvent#
- property fdin: FILE#
- property fdout: int#
- property _filter: bool#
- property fix_columns: int#
- property fix_rows: int#
- property _flush: bool#
- property force_columns: int#
- property force_rows: int#
- property grep_color: bool#
- property grep_highlight: bool#
- property _highlight: str#
- property _input: RzConsInputContext#
- property is_html: bool#
- property is_wine: int#
- property _lastline: str#
- property lines: int#
- property linesleep: int#
- property mouse: int#
- property mouse_event: int#
- property _newline: bool#
- property null: int#
- property pager: str#
- property pagesize: int#
- property refcnt: int#
- property rgbstr: CFunction[[str, size_t, int], str]#
- property rows: int#
- property show_autocomplete_widget: bool#
- property show_vals: bool#
- property teefile: str#
- property timeout: int#
- property use_utf8: bool#
- property use_utf8_curvy: bool#
- property user: Any#
- property user_fgets: CFunction[[str, int, Any], int]#
- property user_fgets_user: Any#
- property vline: Pointer[Pointer[int]]#
- property vtmode: RzVirtTermMode#
- property was_html: bool#
- static canvas_box(x: int, y: int, w: int, h: int, color: str) None #
Calls function
rz_cons_canvas_box
(defined in canvas.c)
- static canvas_fill(x: int, y: int, w: int, h: int, ch: int) None #
Calls function
rz_cons_canvas_fill
(defined in canvas.c)
- static canvas_gotoxy(x: int, y: int) bool #
Calls function
rz_cons_canvas_gotoxy
(defined in canvas.c)
- static canvas_line(x: int, y: int, x2: int, y2: int, style: RzCanvasLineStyle) None #
Calls function
rz_cons_canvas_line
(defined in canvas.c)
- static canvas_line_back_edge(x: int, y: int, x2: int, y2: int, style: RzCanvasLineStyle, ybendpoint1: int, xbendpoint: int, ybendpoint2: int, isvert: int) None #
Calls function
rz_cons_canvas_line_back_edge
(defined in canvas_line.c)
- static canvas_line_diagonal(x: int, y: int, x2: int, y2: int, style: RzCanvasLineStyle) None #
Calls function
rz_cons_canvas_line_diagonal
(defined in canvas_line.c)
- static canvas_line_square(x: int, y: int, x2: int, y2: int, style: RzCanvasLineStyle) None #
Calls function
rz_cons_canvas_line_square
(defined in canvas_line.c)
- static canvas_line_square_defined(x: int, y: int, x2: int, y2: int, style: RzCanvasLineStyle, bendpoint: int, isvert: int) None #
Calls function
rz_cons_canvas_line_square_defined
(defined in canvas_line.c)
- static canvas_print_region() None #
Calls function
rz_cons_canvas_print_region
(defined in canvas.c)
- static canvas_resize(w: int, h: int) int #
Calls function
rz_cons_canvas_resize
(defined in canvas.c)
- static context_break_pop(sig: bool) None #
Calls function
rz_cons_context_break_pop
(defined in cons.c)
- static context_break_push(cb: RzConsBreak, user: Any, sig: bool) None #
Calls function
rz_cons_context_break_push
(defined in cons.c)
- static default_context_is_interactive() bool #
Calls function
rz_cons_default_context_is_interactive
(defined in cons.c)
- static fgets(len: int, argc: int, argv: Pointer[Pointer[int]]) int #
Calls function
rz_cons_fgets
(defined in input.c)
- static get_buffer() str #
Calls function
rz_cons_get_buffer
(defined in cons.c)Return the current RzCons buffer.
- static get_buffer_dup() str #
Calls function
rz_cons_get_buffer_dup
(defined in cons.c)Return a newly allocated buffer containing what’s currently in RzCons buffer.
- static get_cursor() int #
Calls function
rz_cons_get_cursor
(defined in cons.c)Calculates the aproximated x,y coordinates of the cursor before flushing.
- Parameters:
rows – Row number of the cursor
- Returns:
Column number of the cursor
- static lastline_utf8_ansi_len() str #
Calls function
rz_cons_lastline_utf8_ansi_len
(defined in cons.c)
- static rgb_parse(r: int, g: int, b: int, a: int) int #
Calls function
rz_cons_rgb_parse
(defined in rgb.c)
- static rgb_str_mode(outstr: str, sz: size_t, rcolor: RzColor) str #
Calls function
rz_cons_rgb_str_mode
(defined in rgb.c)
- static rgb_str_off(sz: size_t, off: int) str #
Calls function
rz_cons_rgb_str_off
(defined in rgb.c)
- static set_flush() None #
Calls function
rz_cons_set_flush
(defined in cons.c)Set whether RzCons should flush content to screen or not.
- Parameters:
flush – If true, calls to
rz_cons_flush
andrz_cons_visual_flush
would flush cons content to the screen, otherwise they will not.
- static set_last_interactive() None #
Calls function
rz_cons_set_last_interactive
(defined in cons.c)
- static set_raw() None #
Calls function
rz_cons_set_raw
(defined in cons.c)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.
- static strcat_at(x: int, y: int, w: int, h: int) None #
Calls function
rz_cons_strcat_at
(defined in cons.c)