protected function applyStyle($style, $text) { return $this->buildEscSeq($this->styles[$style]) . $text . $this->buildEscSeq($this->styles['reset']); }