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 |
||
|---|---|---|
| .. | ||
| example-work/src/main/scala | ||
| util-complete | ||
| util-control | ||
| util-core/src/main | ||
| util-interface/src/main/java/xsbti | ||
| util-logging | ||
| util-logic/src | ||
| util-position/src | ||
| util-relation/src | ||
| util-scripted/src/main | ||