Struct neko::pty::Display []

pub struct Display { /* fields omitted */ }

Methods

impl Display

The constructor method default returns the Display's interface from shell.

The constructor method default returns the Display's interface from shell.

The accessor ss returns the value of 'ss_mod'.

The accessor mouse returns the value of 'mouse_handle'.

The accessor get_window_size returns the window size interface.

The mutator set_window_size replaces the window size.

The accessor get_cursor_coords returns the value of 'oob', that is the coordinates of the cursor.

The accessor newlines returns the value of 'newline', that contains all newlines that are now displayed on the screen.

Converts a Vector of Character into a byte vector.

The method clear purges the screen vector.

The method resize updates the size of the output screen.

The method tricky_resize updates the size of the output screen.

The method goto moves the cursor position

The method goto_home moves the cursor to the top left of the output screen.

The method goto_up moves the cursor up.

The method goto_down moves the cursor down.

The method goto_right moves the cursor to its right.

The method goto_begin_row moves the cursor to the beginning of the row

The method goto_end_row moves the cursor to the end of the row

The method goto_coord moves the cursor to the given coordinates

The method scroll_down append an empty line on bottom of the screen (the cursor doesn't move)

The method scroll_up insert an empty line on top of the screen (the cursor doesn't move)

The method save_position save a position in the variable 'save_position' to get restored with self.restore_position() described right after. If save_position() is called many times, only the newest safe will be kept.

The method restore_position move the cursor to coordinates safe with self.save_position() described right before. If no coordinates were safe, cursor moves to the top left of the output screen

The method insert_empty_line insert an empty line on the right of the cursor (the cursor doesn't move)

The method erase_right_line erase the current line from the cursor to the next '\n' encountered (char under the cursor included)

The method erase_left_line erase the current line from the previous '\n' to the cursor (char under the cursor included)

The method erase_line erase the entire current line

The method erase_up erase all lines from the current line up to the top of the screen, and erase the current line from the left border column to the cursor. (char under the cursor included)

The method erase_down erase all lines from the current line down to the bottom of the screen and erase the current line from the cursor to the right border column (char under the cursor included)

The method print_enter reproduce the behavior of a '\n'

The method print_char print an unicode character (1 to 4 chars range)

The method next_tab return the size of the current printed tabulation

The method save_terminal saves the terminal Display configuration.

The method restore_terminal restore the terminal Display configuration kept in the 'save_terminal' variable.

The method erase_chars erases couple of chars in the current line from the cursor.

The method erase_chars erases couple of chars in the current line from the cursor.

Trait Implementations

impl Debug for Display

Formats the value using the given formatter.

impl Default for Display

Returns the "default value" for a type. Read more

impl Clone for Display

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Write for Display

The method write from trait io::Write inserts a new list of terms from output.

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more

impl Display for Display

Formats the value using the given formatter. Read more

impl<'a> IntoIterator for &'a Display

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more