Documentation

Terminal
in package

Table of Contents

Properties

$height  : mixed
$width  : mixed

Methods

getHeight()  : int
Gets the terminal height.
getWidth()  : int
Gets the terminal width.
getConsoleMode()  : array<string|int, int>|null
Runs and parses mode CON if it's available, suppressing any error output.
getSttyColumns()  : string|null
Runs and parses stty -a if it's available, suppressing any error output.
initDimensions()  : mixed

Properties

Methods

getHeight()

Gets the terminal height.

public getHeight() : int
Return values
int

getWidth()

Gets the terminal width.

public getWidth() : int
Return values
int

getConsoleMode()

Runs and parses mode CON if it's available, suppressing any error output.

private static getConsoleMode() : array<string|int, int>|null
Return values
array<string|int, int>|null

An array composed of the width and the height or null if it could not be parsed

getSttyColumns()

Runs and parses stty -a if it's available, suppressing any error output.

private static getSttyColumns() : string|null
Return values
string|null

initDimensions()

private static initDimensions() : mixed

        
On this page

Search results