protected function writeWithColor($color, $buffer, $lf = true) { $this->write($this->formatWithColor($color, $buffer)); if ($lf) { $this->write("\n"); } }
protected function writeWithColor($color, $buffer, $lf = true) { if ($this->capture) { $this->color = $color; $this->buffer .= $buffer; } else { parent::writeWithColor($color, $buffer, $lf); } }