+
+ protected function ansiWrap($data, $colorCode = null)
+ {
+ if (!$this->ansi || $colorCode === null) {
+ return $data;
+ }
+
+ foreach ($data as $k => &$value) {
+ $value = $this->cc->convert(
+ $colorCode . $value . '%n'
+ );
+ }
+ return $data;
+ }
+
+ protected function loadConfig()
+ {
+ if (isset($this->config->ansi)) {
+ $this->ansi = $this->config->ansi;
+ }
+ }