Environment
class Environment
Environment.
Constants
DEFAULT_WIDTH |
Default width. |
DEFAULT_HEIGHT |
Default height. |
Properties
protected bool | $hasAnsiSupport | Do we have ANSI support? |
Methods
array|null
getDimensionsForWindows()
Attempts to get dimensions for Windows.
array|null
getDimensionsForUnixLike()
Attempts to get dimensions for Unix-like platforms.
array
getDimensions()
Returns the console dimensions (width & height).
int
getWidth()
Returns the console width.
int
getHeight()
Returns the console height.
bool
hasAnsiSupport()
Do we have ANSI support?
Details
at line 48
protected array|null
getDimensionsForWindows()
Attempts to get dimensions for Windows.
at line 58
protected array|null
getDimensionsForUnixLike()
Attempts to get dimensions for Unix-like platforms.
at line 86
array
getDimensions()
Returns the console dimensions (width & height).
at line 98
int
getWidth()
Returns the console width.
at line 108
int
getHeight()
Returns the console height.
at line 118
bool
hasAnsiSupport()
Do we have ANSI support?