pub fn restore_terminal() -> Result<(), Box<dyn Error + Send + Sync>>Expand description
What: Restore terminal to normal mode, leave the alternate screen, and disable mouse capture.
Inputs:
- None
Output:
Ok(())when restoration succeeds;Errif underlying terminal operations fail.
ยงErrors
Returns an error if raw mode cannot be disabled or the alternate screen cannot be left.