kahlan\cli\Cli::_vt100 PHP Method

_vt100() protected static method

Returns a ANSI/VT100 number from a color name.
protected static _vt100 ( mixed $name ) : integer
$name mixed A color name string or a ANSI/VT100 number.
return integer A ANSI/VT100 number.
    protected static function _vt100($name)
    {
        if (is_numeric($name)) {
            return $name;
        }
        if (isset(static::$_vt100['colors'][$name])) {
            $value = static::$_vt100['colors'][$name];
        } else {
            $value = 39;
        }
        return $value;
    }