helpers\BaseConsole getScreenSize()

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.

doc_Yii
2016-10-30 17:04:34
Comments
Leave a Comment

Please login to continue.