setIsTerminal overrides whether a terminal is connected for testing.
(isTerminal bool)
| 42 | |
| 43 | // setIsTerminal overrides whether a terminal is connected for testing. |
| 44 | func (s *commonStream) setIsTerminal(isTerminal bool) { s.tty = isTerminal } |
| 45 | |
| 46 | // restoreTerminal restores the terminal state if SetRawTerminal succeeded earlier. |
| 47 | func (s *commonStream) restoreTerminal() { |
no outgoing calls
no test coverage detected