#[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: u32Number of columns
rows: u32Number of rows
width: u32Width of the screen in pixels
height: u32Height of the screen in pixels
stdin_tty: BoolIndicates if stdin is a TTY
stdout_tty: BoolIndicates if stdout is a TTY
stderr_tty: BoolIndicates if stderr is a TTY
echo: BoolWhen enabled the TTY will echo input to console
line_buffered: BoolWhen enabled buffers the input until the return key is pressed