IsTerminal returns whether the UI is known to be tied to an interactive terminal (as opposed to being redirected to a file).
()
| 94 | // IsTerminal returns whether the UI is known to be tied to an |
| 95 | // interactive terminal (as opposed to being redirected to a file). |
| 96 | func (r *readlineUI) IsTerminal() bool { |
| 97 | return readline.IsTerminal(int(syscall.Stdout)) |
| 98 | } |
| 99 | |
| 100 | // WantBrowser starts a browser on interactive mode. |
| 101 | func (r *readlineUI) WantBrowser() bool { |