pub fn restore(terminal: &mut DefaultTerminal)Expand description
Restore a terminal built by the setup helpers, logging any error.
This convenience wrapper calls try_restore and writes a diagnostic to
standard error if restoration fails. It is intended for shutdown paths where
there is no useful way to return an error.
§Parameters
terminal- a terminal returned by this module’s setup helpers.
§Panics
Does not intentionally panic.
§Usage note
Use try_restore when the caller can propagate or inspect restoration
errors.