Struct console::Term [] [src]

pub struct Term { /* fields omitted */ }

Abstraction around a terminal.

Methods

impl Term
[src]

Return a new unbuffered terminal

Return a new unbuffered terminal to stderr

Return a new buffered terminal

Return a new buffered terminal to stderr

Writes a string to the terminal and adds a newline.

Flushes

Checks if the terminal is indeed a terminal.

Returns the terminal size or gets sensible defaults.

Returns the terminal size in rows and columns.

If the size cannot be reliably determined None is returned.

Moves the cursor up n lines

Moves the cursor down n lines

Clears the current line.

Clear the last n lines.

Trait Implementations

impl AsRawFd for Term
[src]

Extracts the raw file descriptor. Read more