IsTerminal returns whether this stream is connected to a terminal.
()
| 48 | |
| 49 | // IsTerminal returns whether this stream is connected to a terminal. |
| 50 | func (i *In) IsTerminal() bool { |
| 51 | return i.cs.isTerminal() |
| 52 | } |
| 53 | |
| 54 | // SetRawTerminal sets raw mode on the input terminal. It is a no-op if In |
| 55 | // is not a TTY, or if the "NORAW" environment variable is set to a non-empty |
no test coverage detected