fix getTerminalDimensions
This commit is contained in:
parent
eae3f31d65
commit
5ab15752de
@ -5,6 +5,7 @@ use Symfony\Component\Console\Input\ArrayInput;
|
|||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
use Symfony\Component\Console\Terminal;
|
||||||
use Todaymade\Daux\Daux;
|
use Todaymade\Daux\Daux;
|
||||||
|
|
||||||
class Generate extends DauxCommand
|
class Generate extends DauxCommand
|
||||||
@ -43,7 +44,7 @@ class Generate extends DauxCommand
|
|||||||
|
|
||||||
$daux = $this->prepareDaux($input);
|
$daux = $this->prepareDaux($input);
|
||||||
|
|
||||||
$width = $this->getApplication()->getTerminalDimensions()[0];
|
$width = (new Terminal)->getWidth();
|
||||||
|
|
||||||
// Instiantiate the processor if one is defined
|
// Instiantiate the processor if one is defined
|
||||||
$this->prepareProcessor($daux, $input, $output, $width);
|
$this->prepareProcessor($daux, $input, $output, $width);
|
||||||
|
Loading…
Reference in New Issue
Block a user