Struct textmode::blocking::ScreenGuard
source · pub struct ScreenGuard { /* private fields */ }
Expand description
Switches the terminal on stdout
to alternate screen mode, and restores
it when this object goes out of scope.
Implementations§
source§impl ScreenGuard
impl ScreenGuard
sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Switches the terminal on stdout
to alternate screen mode and returns
a guard object. This is typically called as part of
Output::new
.
Errors
Error::WriteStdout
: failed to write initialization to stdout