Skip to content

Commit

Permalink
In console terms columns are width and rows are height
Browse files Browse the repository at this point in the history
  • Loading branch information
Miha Vrhovnik committed May 16, 2012
1 parent b9307cb commit 575f32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Application.php
Expand Up @@ -801,7 +801,7 @@ protected function getTerminalWidth()
} }


if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) { if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
return $match[1]; return $match[2];
} }
} }


Expand All @@ -817,7 +817,7 @@ protected function getTerminalHeight()
} }


if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) { if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
return $match[2]; return $match[1];
} }
} }


Expand Down

0 comments on commit 575f32d

Please sign in to comment.