#[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,
pub line_feeds: 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
line_feeds: Bool
Indicates if line feeds are ignored on the input
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tty
impl RefUnwindSafe for Tty
impl Send for Tty
impl Sync for Tty
impl Unpin for Tty
impl UnwindSafe for Tty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more