pub fn emergency_restore() {
    let _ = crossterm::terminal::disable_raw_mode();
    print!("{}", crossterm::cursor::Show);
    print!(
        "{}",
        crossterm::style::SetBackgroundColor(crossterm::style::Color::Reset)
    );
    print!(
        "{}",
        crossterm::style::SetForegroundColor(crossterm::style::Color::Reset)
    );
    if crossterm::terminal::LeaveAlternateScreen.is_ansi_code_supported() {
        print!("{}", crossterm::terminal::LeaveAlternateScreen.ansi_code());
    }
    println!();
}
/// Best-effort function to restore the terminal in a panic.
Best-effort function to restore the terminal in a panic.
Best - effort function to restore the terminal in a panic .
pub fn emergency_restore() {
    let _ = crossterm::terminal::disable_raw_mode();
    print!("{}", crossterm::cursor::Show);
    print!(
        "{}",
        crossterm::style::SetBackgroundColor(crossterm::style::Color::Reset)
    );
    print!(
        "{}",
        crossterm::style::SetForegroundColor(crossterm::style::Color::Reset)
    );
    if crossterm::terminal::LeaveAlternateScreen.is_ansi_code_supported() {
        print!("{}", crossterm::terminal::LeaveAlternateScreen.ansi_code());
    }
    println!();
}
pub fn emergency_restore ( ) { let _ = crossterm :: terminal :: disable_raw_mode ( ) ; print ! ( " " crossterm cursor Show ) ; print ! ( " " crossterm style SetBackgroundColor ( crossterm style Color Reset ) ) ; print ! ( " " crossterm style SetForegroundColor ( crossterm style Color Reset ) ) ; if crossterm :: terminal :: LeaveAlternateScreen . is_ansi_code_supported ( ) { print ! ( " " crossterm terminal LeaveAlternateScreen ansi_code ( ) ) ; } println ! ( ) ; }
Best-effort function to restore the terminal in a panic.
Best - effort function to restore the terminal in a panic .