Skip to content

Commit 926bc51

Browse files
committed
[Console] Register terminal env variables
1 parent 865f344 commit 926bc51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public function setDispatcher(EventDispatcherInterface $dispatcher)
104104
*/
105105
public function run(InputInterface $input = null, OutputInterface $output = null)
106106
{
107+
putenv('LINES='.$this->terminal->getHeight());
108+
putenv('COLUMNS='.$this->terminal->getWidth());
109+
107110
if (null === $input) {
108111
$input = new ArgvInput();
109112
}

0 commit comments

Comments
 (0)