Neos\Flow\Error\Debugger::ansiEscapeWrap PHP Method

ansiEscapeWrap() protected static method

Wrap a string with the ANSI escape sequence for colorful output
protected static ansiEscapeWrap ( string $string, string $ansiColors, boolean $enable = true ) : string
$string string The string to wrap
$ansiColors string The ansi color sequence (e.g. "1;37")
$enable boolean If FALSE, the raw string will be returned
return string The wrapped or raw string
    protected static function ansiEscapeWrap($string, $ansiColors, $enable = true)
    {
        if ($enable) {
            return "[" . $ansiColors . 'm' . $string . "";
        } else {
            return $string;
        }
    }