fn shutdown(mut terminal: Terminal<CrosstermBackend<Stdout>>) -> Result<()> {
  disable_raw_mode()?;
  execute!(
    terminal.backend_mut(),
    LeaveAlternateScreen,
    DisableMouseCapture
  )?;
  terminal.show_cursor()?;
  Ok(())
}
// shutdown the CLI and show terminal
shutdown the CLI and show terminal
shutdown the CLI and show terminal
fn shutdown(mut terminal: Terminal<CrosstermBackend<Stdout>>) -> Result<()> {
  disable_raw_mode()?;
  execute!(
    terminal.backend_mut(),
    LeaveAlternateScreen,
    DisableMouseCapture
  )?;
  terminal.show_cursor()?;
  Ok(())
}
fn shutdown ( mut terminal : Terminal < CrosstermBackend < Stdout > > ) -> Result < ( ) > { disable_raw_mode ( ) ? ; execute ! ( terminal backend_mut ( ) LeaveAlternateScreen DisableMouseCapture ) ? ; terminal . show_cursor ( ) ? ; Ok ( ( ) ) }
shutdown the CLI and show terminal
shutdown the CLI and show terminal
terminal
Terminal<CrosstermBackend<Stdout>>
terminal
Terminal<CrosstermBackend<Stdout>>