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

Method Kill

tea.go:1204–1206  ·  view source on GitHub ↗

Kill stops the program immediately and restores the former terminal state. The final render that you would normally see when quitting will be skipped. [program.Run] returns a [ErrProgramKilled] error.

()

Source from the content-addressed store, hash-verified

1202// The final render that you would normally see when quitting will be skipped.
1203// [program.Run] returns a [ErrProgramKilled] error.
1204func (p *Program) Kill() {
1205 p.shutdown(true)
1206}
1207
1208// Wait waits/blocks until the underlying Program finished shutting down.
1209func (p *Program) Wait() {

Callers 3

TestTeaWaitKillFunction · 0.95
TestTeaKillFunction · 0.95
suspendProcessFunction · 0.80

Calls 1

shutdownMethod · 0.95

Tested by 2

TestTeaWaitKillFunction · 0.76
TestTeaKillFunction · 0.76