[Console] Register terminal env variables

This commit is contained in:
Maxime STEINHAUSSER 2016-08-24 14:10:25 +02:00 committed by Maxime Steinhausser
parent 865f344143
commit 926bc51910

View File

@ -104,6 +104,9 @@ class Application
*/
public function run(InputInterface $input = null, OutputInterface $output = null)
{
putenv('LINES='.$this->terminal->getHeight());
putenv('COLUMNS='.$this->terminal->getWidth());
if (null === $input) {
$input = new ArgvInput();
}