Struct mdcat::TerminalSize [−][src]
Expand description
The size of a terminal.
Fields
columns: usize
The width of the terminal, in characters aka columns.
rows: usize
The height of the terminal, in lines.
pixels: Option<PixelSize>
The size in pixels, if available.
Implementations
Get terminal size from $COLUMNS
and $LINES
.
Do not assume any knowledge about window size.
Detect the terminal size by querying the underlying terminal.
On unix this issues a ioctl to the controlling terminal.
On Windows this uses the terminal_size crate which does some magic windows API calls.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TerminalSize
impl Send for TerminalSize
impl Sync for TerminalSize
impl Unpin for TerminalSize
impl UnwindSafe for TerminalSize
Blanket Implementations
Mutably borrows from an owned value. Read more