pub struct DefaultTerminal(_);
Expand description

Default Terminal interface

Implementations

Opens access to the terminal device associated with standard output.

Opens access to the terminal device associated with standard error.

Trait Implementations

Returned by prepare; passed to restore to restore state.
Returns the name of the terminal.
Acquires a lock on terminal read operations and returns a value holding that lock and granting access to such operations. Read more
Acquires a lock on terminal write operations and returns a value holding that lock and granting access to such operations. Read more
Prepares the terminal for line reading and editing operations. Read more
Like prepare, but called when the write lock is already held. Read more
Restores the terminal state using the given state data.
Like restore, but called when the write lock is already held. Read more
Reads some input from the terminal and appends it to the given buffer.
Waits timeout for user input. If timeout is None, waits indefinitely. Read more
Returns the size of the terminal window
Presents a clear terminal screen, with cursor at first row, first column. Read more
Clears characters on the line occupied by the cursor, beginning with the cursor and ending at the end of the line. Also clears all characters on all lines after the cursor. Read more
Moves the cursor up n cells; n may be zero.
Moves the cursor down n cells; n may be zero.
Moves the cursor left n cells; n may be zero.
Moves the cursor right n cells; n may be zero.
Moves the cursor to the first column of the current line
Set the current cursor mode
Writes output to the terminal. Read more
Flushes any currently buffered output data. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.