protected function hasColorSupport() { if ($this->isOnWindows()) { return $this->hasAnsiSupport(); } return $this->hasTty(); }