fix getTerminalDimensions

This commit is contained in:
Stéphane Goetz 2018-05-05 16:58:49 +02:00
parent eae3f31d65
commit 5ab15752de
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Terminal;
use Todaymade\Daux\Daux;
class Generate extends DauxCommand
@ -43,7 +44,7 @@ class Generate extends DauxCommand
$daux = $this->prepareDaux($input);
$width = $this->getApplication()->getTerminalDimensions()[0];
$width = (new Terminal)->getWidth();
// Instiantiate the processor if one is defined
$this->prepareProcessor($daux, $input, $output, $width);