Struct mdcat::TerminalSize[][src]

pub struct TerminalSize {
    pub width: usize,
    pub height: usize,
}

The size of a text terminal.

Fields

The width of the terminal, in characters aka columns.

The height of the terminal, in lines.

Methods

impl Size
[src]

Get terminal size from $COLUMNS and $LINES.

Detect the terminal size.

Get the terminal size from the underlying TTY, and fallback to $COLUMNS and $LINES.

Trait Implementations

impl Debug for Size
[src]

Formats the value using the given formatter. Read more

impl Copy for Size
[src]

impl Clone for Size
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Size
[src]

A good default size assumption for a terminal: 80x24.

Auto Trait Implementations