pub struct Terminal { /* private fields */ }Expand description
Represents a terminal.
Implementations§
Source§impl Terminal
impl Terminal
Sourcepub fn enable_raw_mode(&mut self) -> Result<()>
pub fn enable_raw_mode(&mut self) -> Result<()>
Enable raw mode
Returns a Terminal instance with raw mode enabled.
Sourcepub fn disable_raw_mode(&mut self) -> Result<()>
pub fn disable_raw_mode(&mut self) -> Result<()>
Disable raw mode
Returns Ok(()) if successful, or an error if it fails.
Sourcepub fn set_nonblocking(&self) -> Result<()>
pub fn set_nonblocking(&self) -> Result<()>
Set the terminal to non-blocking mode
Returns Ok(()) if successful, or an error if it fails.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Terminal
impl !RefUnwindSafe for Terminal
impl Send for Terminal
impl !Sync for Terminal
impl Unpin for Terminal
impl UnwindSafe for Terminal
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