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.

Return Value

array|null

at line 56
protected array|null getDimensionsForUnixLike()

Attempts to get dimensions for Unix-like platforms.

Return Value

array|null

at line 84
array getDimensions()

Returns the console dimensions (width & height).

Return Value

array

at line 96
int getWidth()

Returns the console width.

Return Value

int

at line 106
int getHeight()

Returns the console height.

Return Value

int

at line 116
bool hasAnsiSupport()

Do we have ANSI support?

Return Value

bool