Struct crossterm::terminal::LeaveAlternateScreen [−][src]
pub struct LeaveAlternateScreen;
Expand description
A command that switches back to the main screen.
Notes
- Commands must be executed/queued for execution otherwise they do nothing.
- Use EnterAlternateScreen to enter the alternate screen.
Examples
use std::io::{stdout, Write}; use crossterm::{execute, Result, terminal::{EnterAlternateScreen, LeaveAlternateScreen}}; fn main() -> Result<()> { execute!(stdout(), EnterAlternateScreen)?; // Do anything on the alternate screen execute!(stdout(), LeaveAlternateScreen) }
Trait Implementations
Write an ANSI representation of this command to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this. Read more
Auto Trait Implementations
impl RefUnwindSafe for LeaveAlternateScreen
impl Send for LeaveAlternateScreen
impl Sync for LeaveAlternateScreen
impl Unpin for LeaveAlternateScreen
impl UnwindSafe for LeaveAlternateScreen
Blanket Implementations
Mutably borrows from an owned value. Read more