Skip to main content

ScreenWriter

Trait ScreenWriter 

Source
pub trait ScreenWriter {
Show 70 methods // Required method fn collect_add(&mut self, ch: char, cell: &CellState); // Provided methods fn collect_add_with_charset( &mut self, ch: char, cell: &CellState, acs: bool, ) { ... } fn collect_end(&mut self) { ... } fn cursor_up(&mut self, n: u32) { ... } fn cursor_down(&mut self, n: u32) { ... } fn cursor_left(&mut self, n: u32) { ... } fn cursor_right(&mut self, n: u32) { ... } fn cursor_move(&mut self, col: i32, row: i32, origin_mode: bool) { ... } fn insert_line(&mut self, n: u32, bg: i32) { ... } fn delete_line(&mut self, n: u32, bg: i32) { ... } fn scroll_up(&mut self, n: u32, bg: i32) { ... } fn scroll_down(&mut self, n: u32, bg: i32) { ... } fn linefeed(&mut self, wrapped: bool, bg: i32) { ... } fn reverse_index(&mut self, bg: i32) { ... } fn carriage_return(&mut self) { ... } fn backspace(&mut self) { ... } fn insert_character(&mut self, n: u32, bg: i32) { ... } fn delete_character(&mut self, n: u32, bg: i32) { ... } fn clear_character(&mut self, n: u32, bg: i32) { ... } fn clear_end_of_screen(&mut self, bg: i32) { ... } fn clear_start_of_screen(&mut self, bg: i32) { ... } fn clear_screen(&mut self, bg: i32) { ... } fn clear_history(&mut self) { ... } fn clear_end_of_line(&mut self, bg: i32) { ... } fn clear_start_of_line(&mut self, bg: i32) { ... } fn clear_line(&mut self, bg: i32) { ... } fn mode_set(&mut self, mode: u32) { ... } fn mode_clear(&mut self, mode: u32) { ... } fn set_scroll_region(&mut self, top: u32, bottom: u32) { ... } fn alternate_on(&mut self, bg: i32, save_cursor: bool) { ... } fn alternate_off(&mut self, bg: i32, restore_cursor: bool) { ... } fn reset_attributes(&mut self) { ... } fn tab(&mut self) { ... } fn cursor_backward_tab(&mut self, n: u32) { ... } fn set_tab_stop(&mut self) { ... } fn clear_tab_stop(&mut self) { ... } fn clear_all_tab_stops(&mut self) { ... } fn set_title(&mut self, title: &str) { ... } fn set_window_name(&mut self, name: &str) { ... } fn set_path(&mut self, path: &str) { ... } fn save_cursor(&mut self) { ... } fn restore_cursor(&mut self) { ... } fn alignment_test(&mut self) { ... } fn full_reset(&mut self) { ... } fn start_sync(&mut self) { ... } fn stop_sync(&mut self) { ... } fn set_cursor_style(&mut self, n: u32) { ... } fn osc_palette(&mut self, data: &str, end: InputEndType) { ... } fn osc_hyperlink(&mut self, data: &str) { ... } fn current_hyperlink_id(&self) -> u32 { ... } fn osc_notification(&mut self, data: &str) { ... } fn osc_fg_colour(&mut self, data: &str, end: InputEndType) { ... } fn osc_bg_colour(&mut self, data: &str, end: InputEndType) { ... } fn osc_cursor_colour(&mut self, data: &str, end: InputEndType) { ... } fn osc_clipboard(&mut self, data: &str, end: InputEndType) { ... } fn osc_reset_palette(&mut self, data: &str) { ... } fn osc_reset_fg(&mut self) { ... } fn osc_reset_bg(&mut self) { ... } fn osc_reset_cursor(&mut self) { ... } fn osc_shell_integration(&mut self, data: &str) { ... } fn dcs_passthrough(&mut self, data: &[u8]) { ... } fn bell(&mut self) { ... } fn screen_size_x(&self) -> u32 { ... } fn screen_size_y(&self) -> u32 { ... } fn cursor_x(&self) -> u32 { ... } fn cursor_y(&self) -> u32 { ... } fn current_mode(&self) -> u32 { ... } fn push_title(&mut self) { ... } fn pop_title(&mut self) { ... } fn notify_pane_title_changed(&mut self) { ... }
}
Expand description

Screen-write abstraction trait.

The parser calls these methods to effect terminal changes. rmux-server implements this trait against its pane/grid runtime.

Required Methods§

Source

fn collect_add(&mut self, ch: char, cell: &CellState)

Add a printable character with current cell attributes.

Provided Methods§

Source

fn collect_add_with_charset(&mut self, ch: char, cell: &CellState, acs: bool)

Add a printable character, applying ACS charset if acs is true.

Source

fn collect_end(&mut self)

End character collection (flush). Called before non-print transitions.

Source

fn cursor_up(&mut self, n: u32)

Move cursor up by n rows.

Source

fn cursor_down(&mut self, n: u32)

Move cursor down by n rows.

Source

fn cursor_left(&mut self, n: u32)

Move cursor left by n columns.

Source

fn cursor_right(&mut self, n: u32)

Move cursor right by n columns.

Source

fn cursor_move(&mut self, col: i32, row: i32, origin_mode: bool)

Move cursor to absolute position. -1 means “don’t change”.

Source

fn insert_line(&mut self, n: u32, bg: i32)

Insert n blank lines at cursor, scrolling down.

Source

fn delete_line(&mut self, n: u32, bg: i32)

Delete n lines at cursor, scrolling up.

Source

fn scroll_up(&mut self, n: u32, bg: i32)

Scroll up by n lines.

Source

fn scroll_down(&mut self, n: u32, bg: i32)

Scroll down by n lines.

Source

fn linefeed(&mut self, wrapped: bool, bg: i32)

Line feed.

Source

fn reverse_index(&mut self, bg: i32)

Reverse index (scroll down or move up).

Source

fn carriage_return(&mut self)

Carriage return.

Source

fn backspace(&mut self)

Backspace.

Source

fn insert_character(&mut self, n: u32, bg: i32)

Insert n blank characters at cursor.

Source

fn delete_character(&mut self, n: u32, bg: i32)

Delete n characters at cursor.

Source

fn clear_character(&mut self, n: u32, bg: i32)

Erase (clear) n characters at cursor.

Source

fn clear_end_of_screen(&mut self, bg: i32)

Clear to end of screen.

Source

fn clear_start_of_screen(&mut self, bg: i32)

Clear from start of screen.

Source

fn clear_screen(&mut self, bg: i32)

Clear entire screen.

Source

fn clear_history(&mut self)

Clear scrollback history.

Source

fn clear_end_of_line(&mut self, bg: i32)

Clear to end of line.

Source

fn clear_start_of_line(&mut self, bg: i32)

Clear from start of line.

Source

fn clear_line(&mut self, bg: i32)

Clear entire line.

Source

fn mode_set(&mut self, mode: u32)

Set mode bits.

Source

fn mode_clear(&mut self, mode: u32)

Clear mode bits.

Source

fn set_scroll_region(&mut self, top: u32, bottom: u32)

Set scroll region (top and bottom margins, 0-based).

Source

fn alternate_on(&mut self, bg: i32, save_cursor: bool)

Switch to alternate screen. save_cursor = true for 1049.

Source

fn alternate_off(&mut self, bg: i32, restore_cursor: bool)

Switch back from alternate screen.

Source

fn reset_attributes(&mut self)

Reset cell attributes to default.

Source

fn tab(&mut self)

Handle a horizontal tab.

Source

fn cursor_backward_tab(&mut self, n: u32)

Move cursor backward n tab stops (CBT).

Source

fn set_tab_stop(&mut self)

Set a tab stop at the current cursor column.

Source

fn clear_tab_stop(&mut self)

Clear a tab stop at the current cursor column.

Source

fn clear_all_tab_stops(&mut self)

Clear all tab stops.

Source

fn set_title(&mut self, title: &str)

Set the pane/window title.

Source

fn set_window_name(&mut self, name: &str)

Set the window name (from rename string).

Source

fn set_path(&mut self, path: &str)

Set the current directory path (OSC 7).

Source

fn save_cursor(&mut self)

Save cursor state (DECSC).

Source

fn restore_cursor(&mut self)

Restore cursor state (DECRC).

Source

fn alignment_test(&mut self)

Fill screen with ‘E’ characters (DECALN).

Source

fn full_reset(&mut self)

Full terminal reset (RIS).

Source

fn start_sync(&mut self)

Start synchronized output.

Source

fn stop_sync(&mut self)

Stop synchronized output and redraw.

Source

fn set_cursor_style(&mut self, n: u32)

Set cursor style (DECSCUSR). n is the Ps value 0-6.

Source

fn osc_palette(&mut self, data: &str, end: InputEndType)

Handle OSC 4 palette colour.

Handle OSC 8 hyperlink.

Returns the active OSC 8 hyperlink inner ID.

Source

fn osc_notification(&mut self, data: &str)

Handle OSC 9 notification.

Source

fn osc_fg_colour(&mut self, data: &str, end: InputEndType)

Handle OSC 10 fg colour query/set.

Source

fn osc_bg_colour(&mut self, data: &str, end: InputEndType)

Handle OSC 11 bg colour query/set.

Source

fn osc_cursor_colour(&mut self, data: &str, end: InputEndType)

Handle OSC 12 cursor colour query/set.

Source

fn osc_clipboard(&mut self, data: &str, end: InputEndType)

Handle OSC 52 clipboard.

Source

fn osc_reset_palette(&mut self, data: &str)

Handle OSC 104 reset palette.

Source

fn osc_reset_fg(&mut self)

Handle OSC 110 reset fg.

Source

fn osc_reset_bg(&mut self)

Handle OSC 111 reset bg.

Source

fn osc_reset_cursor(&mut self)

Handle OSC 112 reset cursor colour.

Source

fn osc_shell_integration(&mut self, data: &str)

Handle OSC 133 shell integration.

Source

fn dcs_passthrough(&mut self, data: &[u8])

Handle DCS passthrough string.

Source

fn bell(&mut self)

Ring the bell (BEL).

Source

fn screen_size_x(&self) -> u32

Get screen width in columns.

Source

fn screen_size_y(&self) -> u32

Get screen height in rows.

Source

fn cursor_x(&self) -> u32

Get current cursor column (0-based).

Source

fn cursor_y(&self) -> u32

Get current cursor row (0-based).

Source

fn current_mode(&self) -> u32

Get current screen mode flags.

Source

fn push_title(&mut self)

Push current title onto the stack.

Source

fn pop_title(&mut self)

Pop title from the stack.

Source

fn notify_pane_title_changed(&mut self)

Signal that the pane title changed.

Implementors§