pub struct Tui { /* private fields */ }Implementations§
Source§impl Tui
impl Tui
pub fn new() -> Result<Self>
Sourcepub fn enter(&mut self) -> Result<()>
pub fn enter(&mut self) -> Result<()>
Enter TUI mode: panic hook (installed once), raw mode, alternate screen.
Sourcepub fn suspend(&mut self) -> Result<()>
pub fn suspend(&mut self) -> Result<()>
Exit TUI mode and hand the next process a blank screen. Terminals without alternate-screen support keep the TUI painted on the main buffer, so without this clear a spawned ssh would draw on top of the old frame.
Sourcepub fn force_redraw(&mut self)
pub fn force_redraw(&mut self)
Force a full redraw on the next draw() call. Use after external processes may have written to the terminal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tui
impl RefUnwindSafe for Tui
impl Send for Tui
impl Sync for Tui
impl Unpin for Tui
impl UnsafeUnpin for Tui
impl UnwindSafe for Tui
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more