MCPcopy Create free account
hub / github.com/Autoparallel/learner / cleanup

Method cleanup

crates/learnerd/src/tui/mod.rs:106–111  ·  view source on GitHub ↗

Cleans up the terminal state

(&mut self)

Source from the content-addressed store, hash-verified

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.

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected