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 46
protected array|null
getDimensionsForWindows()
Attempts to get dimensions for Windows.
at line 56
protected array|null
getDimensionsForUnixLike()
Attempts to get dimensions for Unix-like platforms.
at line 84
array
getDimensions()
Returns the console dimensions (width & height).
at line 96
int
getWidth()
Returns the console width.
at line 106
int
getHeight()
Returns the console height.
at line 116
bool
hasAnsiSupport()
Do we have ANSI support?