Copied!
Cloneable Instantiable
Methods
public getHeight () : int
 

Gets the terminal height.

public getWidth () : int
 

Gets the terminal width.

public static hasSttyAvailable () : bool
 
  • internal
Properties
private static int $height
private static bool $stty
private static int $width
Methods
private static getConsoleMode () : ? array
 

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

  • return int []| null An array composed of the width and the height or null if it could not be parsed
private static getSttyColumns () : ? string
 

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

private static hasVt100Support () : bool
 

Returns whether STDOUT has vt100 support (some Windows 10+ configurations).

private static initDimensions ()
private static initDimensionsUsingStty ()
 

Initializes dimensions using the output of an stty columns line.

private static readFromProcess ( string $command ) : ? string
Properties
private static int $height
private static bool $stty
private static int $width
Methods
private static getConsoleMode () : ? array
 

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

  • return int []| null An array composed of the width and the height or null if it could not be parsed
private static getSttyColumns () : ? string
 

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

public static hasSttyAvailable () : bool
 
  • internal
private static hasVt100Support () : bool
 

Returns whether STDOUT has vt100 support (some Windows 10+ configurations).

private static initDimensions ()
private static initDimensionsUsingStty ()
 

Initializes dimensions using the output of an stty columns line.

private static readFromProcess ( string $command ) : ? string
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration