MCPcopy Create free account
hub / github.com/GCWing/BitFun / restore_terminal

Function restore_terminal

src/apps/cli/src/ui/mod.rs:61–71  ·  view source on GitHub ↗

Restore terminal

(mut terminal: Terminal<CrosstermBackend<io::Stdout>>)

Source from the content-addressed store, hash-verified

59
60/// Restore terminal
61pub fn restore_terminal(mut terminal: Terminal<CrosstermBackend<io::Stdout>>) -> Result<()> {
62 disable_raw_mode()?;
63 execute!(
64 terminal.backend_mut(),
65 DisableBracketedPaste,
66 DisableMouseCapture,
67 LeaveAlternateScreen
68 )?;
69 terminal.show_cursor()?;
70 Ok(())
71}
72
73/// Render a loading/status message on the terminal (stays in alternate screen)
74pub fn render_loading(

Callers 2

run_interactiveFunction · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected