Stop stops execution of the terminal and sets the Status to TTDone
()
| 112 | // Stop stops execution of the terminal and sets the Status |
| 113 | // to TTDone |
| 114 | func (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 |
no test coverage detected