Neos\Flow\Error\Debugger::ansiEscapeWrap PHP Метод

ansiEscapeWrap() защищенный статический Метод

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
Результат string The wrapped or raw string
    protected static function ansiEscapeWrap($string, $ansiColors, $enable = true)
    {
        if ($enable) {
            return "[" . $ansiColors . 'm' . $string . "";
        } else {
            return $string;
        }
    }