8000 [Console] Make getTerminalWith & getTerminalHeight public by egeloen · Pull Request #6571 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Make getTerminalWith & getTerminalHeight public #6571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Console] Make getTerminalWith & getTerminalHeight public
  • Loading branch information
GeLoLabs committed Jan 5, 2013
commit f299bd0968e52b87b8c2a2e1b39708626d824303
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
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