getScreenSize() public static method
Usage: list($width, $height) = ConsoleHelper::getScreenSize();
public static array|boolean getScreenSize ( $refresh = false ) | ||
---|---|---|
$refresh | boolean |
Whether to force checking and not re-use cached size value. This is useful to detect changing window size while the application is running but may not get up to date values on every terminal. |
return | array|boolean |
An array of ($width, $height) or false when it was not able to determine size. |
Please login to continue.