Cleans up the terminal state
(&mut self)
| 104 | |
| 105 | /// Cleans up the terminal state |
| 106 | fn cleanup(&mut self) -> Result<()> { |
| 107 | disable_raw_mode()?; |
| 108 | execute!(self.terminal.backend_mut(), LeaveAlternateScreen, DisableMouseCapture)?; |
| 109 | self.terminal.show_cursor()?; |
| 110 | Ok(()) |
| 111 | } |
| 112 | |
| 113 | // TODO (autoparallel): This is definitely just replicating what these commands do to an extent. |
| 114 | // This abstraction isn't good. |