Struct glerminal::text_buffer::TextBuffer [] [src]

pub struct TextBuffer { /* fields omitted */ }

Represents the text buffer of the terminal; contains the "grid of TermCharacters" that will be drawn.

See text_buffer mod for examples and more detailed documentation.

Methods

impl TextBuffer
[src]

[src]

Creates a new text buffer with the given dimensions (width in characters, height in characters)

[src]

Gets the TermChaacter in the given position

[src]

Clears the screen (makes every character empty and resets their style)

[src]

Puts a character to the current position of the cursor with the cursor's style

[src]

Puts the given text the same way as put_char

[src]

Changes the foreground color for the cursor

[src]

Changes the background color of the cursor

[src]

Returns the current foreground color of the cursor

[src]

Returns the current background color of the cursor

[src]

Changes the shakiness of the cursor

[src]

Gets the current shakiness of the cursor

[src]

Moves the cursor to a specified location in the terminal. If the location does not exist, nothing happens.

[src]

Returns the current position of the cursor

Trait Implementations

Auto Trait Implementations

impl Send for TextBuffer

impl !Sync for TextBuffer