Struct wasix::Tty

source · []
#[repr(C)]
pub struct Tty { pub cols: u32, pub rows: u32, pub width: u32, pub height: u32, pub stdin_tty: Bool, pub stdout_tty: Bool, pub stderr_tty: Bool, pub echo: Bool, pub line_buffered: Bool, }

Fields

cols: u32

Number of columns

rows: u32

Number of rows

width: u32

Width of the screen in pixels

height: u32

Height of the screen in pixels

stdin_tty: Bool

Indicates if stdin is a TTY

stdout_tty: Bool

Indicates if stdout is a TTY

stderr_tty: Bool

Indicates if stderr is a TTY

echo: Bool

When enabled the TTY will echo input to console

line_buffered: Bool

When enabled buffers the input until the return key is pressed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.