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

pub struct DefaultTerminal(_);

Default Terminal interface

Methods

impl DefaultTerminal
[src]

[src]

Opens access to the terminal device associated with standard output.

[src]

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.

[src]

Returns the name of the terminal.

Important traits for Box<W>
[src]

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<W>
[src]

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]

[src]

Prepares the terminal for line reading and editing operations. Read more

[src]

Like prepare, but called when the write lock is already held. Read more

[src]

Restores the terminal state using the given state data.

[src]

Like restore, but called when the write lock is already held. Read more

[src]

Reads some input from the terminal and appends it to the given buffer.

[src]

Waits timeout for user input. If timeout is None, waits indefinitely. Read more

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

[src]

Returns the size of the terminal window

[src]

Presents a clear terminal screen, with cursor at first row, first column. Read more

[src]

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

[src]

Moves the cursor up n cells; n may be zero.

[src]

Moves the cursor down n cells; n may be zero.

[src]

Moves the cursor left n cells; n may be zero.

[src]

Moves the cursor right n cells; n may be zero.

[src]

Moves the cursor to the first column of the current line

[src]

Set the current cursor mode

[src]

Writes output to the terminal. Read more

[src]

Flushes any currently buffered output data. Read more

Auto Trait Implementations