IsTerminal tells if the input is a user terminal (rather than a buffer, a pipe ...), which tells if we can use interactive features.
()
| 41 | // IsTerminal tells if the input is a user terminal (rather than a buffer, |
| 42 | // a pipe ...), which tells if we can use interactive features. |
| 43 | IsTerminal() bool |
| 44 | |
| 45 | // ForceIsTerminal allow to force the returned value of IsTerminal |
| 46 | // This only works in test scenario. |