TerminalTheme returns "light", "dark", or "none" depending on the background color of the terminal.
()
| 131 | |
| 132 | // TerminalTheme returns "light", "dark", or "none" depending on the background color of the terminal. |
| 133 | func (s *IOStreams) TerminalTheme() string { |
| 134 | if s.terminalTheme == "" { |
| 135 | s.DetectTerminalTheme() |
| 136 | } |
| 137 | |
| 138 | return s.terminalTheme |
| 139 | } |
| 140 | |
| 141 | func (s *IOStreams) SetColorEnabled(colorEnabled bool) { |
| 142 | s.colorOverride = true |
no test coverage detected