MCPcopy
hub / github.com/charmbracelet/bubbletea / restoreTerminalState

Method restoreTerminalState

tty.go:33–38  ·  view source on GitHub ↗

restoreTerminalState restores the terminal to the state prior to running the Bubble Tea program.

()

Source from the content-addressed store, hash-verified

31// restoreTerminalState restores the terminal to the state prior to running the
32// Bubble Tea program.
33func (p *Program) restoreTerminalState() error {
34 // Flush queued commands.
35 _ = p.flush()
36
37 return p.restoreInput()
38}
39
40// restoreInput restores the tty input to its original state.
41func (p *Program) restoreInput() error {

Callers 2

shutdownMethod · 0.95
releaseTerminalMethod · 0.95

Calls 2

flushMethod · 0.95
restoreInputMethod · 0.95

Tested by

no test coverage detected