Skip to content

Commit

Permalink
[Console] Register terminal env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed Aug 24, 2016
1 parent 865f344 commit 926bc51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Symfony/Component/Console/Application.php
Expand Up @@ -104,6 +104,9 @@ public function setDispatcher(EventDispatcherInterface $dispatcher)
*/
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();
}
Expand Down

0 comments on commit 926bc51

Please sign in to comment.