mirror of https://github.com/sbt/sbt.git
**Problem** The color-detection logic in Terminal.scala is interleaved with side effects (system property reads, environment checks) making it hard to understand and impossible to unit test. **Solution** Extract a pure `isColorDefault` function that takes all inputs as parameters and returns whether color should be enabled. The existing `useColorDefault` delegates to it. Add unit tests covering all priority levels and heuristic branches. Fixes #6050 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||