Struct textmode::blocking::Output[][src]

pub struct Output { /* fields omitted */ }
Expand description

Manages drawing to the terminal on stdout.

Most functionality is provided by the Textmode trait. You should call those trait methods to draw to the in-memory screen, and then call refresh when you want to update the terminal on stdout.

Implementations

Creates a new Output instance containing a ScreenGuard instance.

Creates a new Output instance without creating a ScreenGuard instance.

Removes the ScreenGuard instance stored in this Output instance and returns it. This can be useful if you need to manage the lifetime of the ScreenGuard instance separately.

Draws the in-memory screen to the terminal on stdout. This is done using a diff mechanism to only update the parts of the terminal which are different from the in-memory screen.

Draws the in-memory screen to the terminal on stdout. This clears the screen and redraws it from scratch, rather than using a diff mechanism like refresh. This can be useful when the current state of the terminal screen is unknown, such as after the terminal has been resized.

Trait Implementations

Returns the in-memory screen itself. This is the screen that will be drawn on the next call to refresh. Read more

Writes a sequence of bytes, potentially containing terminal escape sequences, to the in-memory screen. Read more

Sets the terminal size for the in-memory screen.

Writes a string of printable characters to the in-memory screen.

Moves the in-memory screen’s cursor.

Clears the in-memory screen.

Clears the line containing the cursor on the in-memory screen.

Clears the in-memory screen’s currently active drawing attributes.

Sets the foreground color for subsequent drawing operations to the in-memory screen. Read more

Sets the background color for subsequent drawing operations to the in-memory screen. Read more

Sets whether subsequent text drawn to the in-memory screen should be bold. Read more

Sets whether subsequent text drawn to the in-memory screen should be italic. Read more

Sets whether subsequent text drawn to the in-memory screen should be underlined. Read more

Sets whether subsequent text drawn to the in-memory screen should have its colors inverted. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.