Constants |
public Symfony |
Methods |
public static getColorMode() : Symfony About Ansi color types: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors For more information about true color support with terminals https://github.com/termstandard/colors/. |
public getHeight() : int Gets the terminal height. |
public getWidth() : int Gets the terminal width. |
public static hasSttyAvailable() : bool
|
public static setColorMode(?Symfony Force a terminal color mode rendering. |
Properties |
private static ?Symfony |
private static ?int $height = NULL |
private static ?bool $stty = NULL |
private static ?int $width = NULL |
Methods |
private static getConsoleMode() : ?array Runs and parses mode CON if it's available, suppressing any error output.
|
private static getSttyColumns() : ?string Runs and parses stty -a if it's available, suppressing any error output. |
private static initDimensions() : void |
private static initDimensionsUsingStty() : void Initializes dimensions using the output of an stty columns line. |
private static readFromProcess(array|string $command) : ?string |
Properties |
private static ?Symfony |
private static ?int $height = NULL |
private static ?bool $stty = NULL |
private static ?int $width = NULL |
Methods |
public static getColorMode() : Symfony About Ansi color types: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors For more information about true color support with terminals https://github.com/termstandard/colors/. |
private static getConsoleMode() : ?array Runs and parses mode CON if it's available, suppressing any error output.
|
private static getSttyColumns() : ?string Runs and parses stty -a if it's available, suppressing any error output. |
public static hasSttyAvailable() : bool
|
private static initDimensions() : void |
private static initDimensionsUsingStty() : void Initializes dimensions using the output of an stty columns line. |
private static readFromProcess(array|string $command) : ?string |
public static setColorMode(?Symfony Force a terminal color mode rendering. |