src/Terminal.php
public static function build($format, $type = 'm'): string
    {
        $format = null === $format ? '' : implode(';', (array)$format);

        return "\033[" . implode(';', (array)$format) . $type;
    }
public static function build($format, $type = 'm'): string
    {
        $format = null === $format ? '' : implode(';', (array)$format);

        return "\033[" . implode(';', (array)$format) . $type;
    }
public static function build ( $ format , $ type = 'm' ) : string { $ format = null === $ format ? '' : implode ( ';' , ( array ) $ format ) ; return "\033[" . implode ( ';' , ( array ) $ format ) . $ type ; }
build ansi code string

```
Terminal::build(null, 'u');  // "\033[s" Saves the current cursor position
Terminal::build(0);          // "\033[0m" Build end char, Resets any ANSI format
```

@param mixed  $format
@param string $type
@return string
build ansi code string