@@ 786-788 (lines=3) @@ | ||
783 | ||
784 | if ($sttyString = $this->getSttyColumns()) { |
|
785 | // extract [w, h] from "rows h; columns w;" |
|
786 | if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) { |
|
787 | return array((int) $matches[2], (int) $matches[1]); |
|
788 | } |
|
789 | // extract [w, h] from "; h rows; w columns" |
|
790 | if (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) { |
|
791 | return array((int) $matches[2], (int) $matches[1]); |
|
@@ 790-792 (lines=3) @@ | ||
787 | return array((int) $matches[2], (int) $matches[1]); |
|
788 | } |
|
789 | // extract [w, h] from "; h rows; w columns" |
|
790 | if (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) { |
|
791 | return array((int) $matches[2], (int) $matches[1]); |
|
792 | } |
|
793 | } |
|
794 | ||
795 | return array(null, null); |