pub struct Terminal { /* private fields */ }Implementations§
Source§impl Terminal
impl Terminal
Sourcepub fn enable_raw_mode(fd: i32) -> Result<Self>
pub fn enable_raw_mode(fd: i32) -> Result<Self>
Enable raw mode
Sourcepub fn set_nonblocking(&self) -> Result<()>
pub fn set_nonblocking(&self) -> Result<()>
Set the terminal to non-blocking mode
Sourcepub fn show_cursor() -> Result<()>
pub fn show_cursor() -> Result<()>
Show the cursor
Sourcepub fn hide_cursor() -> Result<()>
pub fn hide_cursor() -> Result<()>
Hide the cursor
Sourcepub fn move_to_home() -> Result<()>
pub fn move_to_home() -> Result<()>
Move the cursor to the home position
Sourcepub fn enable_alternative_screen() -> Result<()>
pub fn enable_alternative_screen() -> Result<()>
Enable alternative screen
Sourcepub fn disable_alternative_screen() -> Result<()>
pub fn disable_alternative_screen() -> Result<()>
Disable alternative screen
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