#[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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tty
impl Send for Tty
impl Sync for Tty
impl Unpin for Tty
impl UnwindSafe for Tty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more