Skip to content

Commit

Permalink
[Console] Make getTerminalWith & getTerminalHeight public
Browse files Browse the repository at this point in the history
  • Loading branch information
GeLoLabs committed Jan 5, 2013
1 parent d865278 commit f299bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Application.php
Expand Up @@ -794,7 +794,7 @@ public function renderException($e, $output)
*
* @return int|null
*/
protected function getTerminalWidth()
public function getTerminalWidth()
{
if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) {
return preg_replace('{^(\d+)x.*$}', '$1', $ansicon);
Expand All @@ -810,7 +810,7 @@ protected function getTerminalWidth()
*
* @return int|null
*/
protected function getTerminalHeight()
public function getTerminalHeight()
{
if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) {
return preg_replace('{^\d+x\d+ \(\d+x(\d+)\)$}', '$1', trim($ansicon));
Expand Down

0 comments on commit f299bd0

Please sign in to comment.