public static function toTerminal($var, array $options = null): string
    {
        return \htmlspecialchars_decode(\strip_tags(\preg_replace_callback('#<span class="tracy-dump-(\w+)">|</span>#',
            function ($m) {
                return "\033[" . (isset($m[1], self::$terminalColors[$m[1]]) ? self::$terminalColors[$m[1]] : '0') . 'm';
            }, self::toHtml($var, $options))), ENT_QUOTES);
    }