kahlan\cli\Cli::_vtbackground PHP Method

_vtbackground() protected static method

Returns the ANSI/VT100 number from a backgound color name.
protected static _vtbackground ( mixed $name ) : integer
$name mixed A backgound color name string or a ANSI/VT100 number.
return integer A ANSI/VT100 number.
    protected static function _vtbackground($name)
    {
        if (is_numeric($name)) {
            return $name + 10;
        }
        return static::_vtcolor($name) + 10;
    }