src/Util/System/Windows.php
protected function getDimensions()
    {
        $output = $this->exec('mode CON', true);

        if (!is_array($output)) {
            return [];
        }

        $output = implode("\n", $output);

        preg_match_all('/.*:\s*(\d+)/', $output, $matches);

        return (!empty($matches[1])) ? $matches[1] : [];
    }
protected function getDimensions()
    {
        $output = $this->exec('mode CON', true);

        if (!is_array($output)) {
            return [];
        }

        $output = implode("\n", $output);

        preg_match_all('/.*:\s*(\d+)/', $output, $matches);

        return (!empty($matches[1])) ? $matches[1] : [];
    }
protected function getDimensions ( ) { $ output = $ this -> exec ( 'mode CON' , true ) ; if ( ! is_array ( $ output ) ) { return [ ] ; } $ output = implode ( "\n" , $ output ) ; preg_match_all ( '/.*:\s*(\d+)/' , $ output , $ matches ) ; return ( ! empty ( $ matches [ 1 ] ) ) ? $ matches [ 1 ] : [ ] ; }
Get information about the dimensions of the terminal

@return array
Get information about the dimensions of the terminal