(fmt pretty.Formatter)
| 115 | } |
| 116 | |
| 117 | func ifTerm(fmt pretty.Formatter) pretty.Formatter { |
| 118 | if !isTerm() { |
| 119 | return pretty.Nop |
| 120 | } |
| 121 | return fmt |
| 122 | } |
| 123 | |
| 124 | func init() { |
| 125 | // We do not adapt the color based on whether the terminal is light or dark. |