merged branch mvrhov/exchangeWidthHeight (PR #4299)
Commits -------445fd2f
In console terms columns are width and rows are height Discussion ---------- [Console] Exchange terminal width and height Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT --------------------------------------------------------------------------- by travisbot at 2012-05-16T09:20:08Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1344055) (merged445fd2f9
into8cd6cbcf
).
This commit is contained in:
commit
5e800a8dfc
@ -801,7 +801,7 @@ class Application
|
||||
}
|
||||
|
||||
if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
|
||||
return $match[1];
|
||||
return $match[2];
|
||||
}
|
||||
}
|
||||
|
||||
@ -817,7 +817,7 @@ class Application
|
||||
}
|
||||
|
||||
if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
|
||||
return $match[2];
|
||||
return $match[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user