Struct linefeed::terminal::DefaultTerminal[][src]

pub struct DefaultTerminal(_);

Default Terminal interface

Methods

impl DefaultTerminal
[src]

Opens access to the terminal device associated with standard output.

Opens access to the terminal device associated with standard error.

Trait Implementations

impl Terminal for DefaultTerminal
[src]

Returned by prepare; passed to restore to restore state.

Returns the name of the terminal.

Important traits for Box<R>

Acquires a lock on terminal read operations and returns a value holding that lock and granting access to such operations. Read more

Important traits for Box<R>

Acquires a lock on terminal write operations and returns a value holding that lock and granting access to such operations. Read more

impl<'a> TerminalReader<DefaultTerminal> for TerminalReadGuard<'a>
[src]

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

impl<'a> TerminalWriter<DefaultTerminal> for TerminalWriteGuard<'a>
[src]

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