Skip to main content

restore_terminal

Function restore_terminal 

Source
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; Err if underlying terminal operations fail.

ยงErrors

Returns an error if raw mode cannot be disabled or the alternate screen cannot be left.