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

Method suspend

tty.go:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func (p *Program) suspend() {
13 if err := p.releaseTerminal(true); err != nil {
14 // If we can't release input, abort.
15 return
16 }
17
18 suspendProcess()
19
20 _ = p.RestoreTerminal()
21 go p.Send(ResumeMsg{})
22}
23
24func (p *Program) initTerminal() error {
25 if p.disableRenderer {

Callers 1

eventLoopMethod · 0.95

Calls 4

releaseTerminalMethod · 0.95
RestoreTerminalMethod · 0.95
SendMethod · 0.95
suspendProcessFunction · 0.70

Tested by

no test coverage detected