From 926bc519107d01c78fd656b5badf1a9ba451f4f2 Mon Sep 17 00:00:00 2001 From: Maxime STEINHAUSSER Date: Wed, 24 Aug 2016 14:10:25 +0200 Subject: [PATCH] [Console] Register terminal env variables --- src/Symfony/Component/Console/Application.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index f0129d5a9a..708d03b919 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -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(); }