MCPcopy
hub / github.com/micro-editor/micro / Stop

Method Stop

internal/shell/terminal.go:114–123  ·  view source on GitHub ↗

Stop stops execution of the terminal and sets the Status to TTDone

()

Source from the content-addressed store, hash-verified

112// Stop stops execution of the terminal and sets the Status
113// to TTDone
114func (t *Terminal) Stop() {
115 t.Term.File().Close()
116 t.Term.Close()
117 if t.wait {
118 t.Status = TTDone
119 } else {
120 t.Close()
121 CloseTerms <- true
122 }
123}
124
125// Close sets the Status to TTClose indicating that the terminal
126// is done and should be closed

Callers 5

StartMethod · 0.95
RunInteractiveShellFunction · 0.80
openFileFunction · 0.80
CloseMethod · 0.80
StartAutoSaveFunction · 0.80

Calls 2

CloseMethod · 0.95
CloseMethod · 0.65

Tested by

no test coverage detected