Copied!
CloneableInstantiable
Constants
public Symfony\Component\Console\Terminal::DEFAULT_COLOR_MODE = ''
Methods
public static getColorMode() : Symfony\Component\Console\Output\AnsiColorMode
 

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
 
  • internal
public static setColorMode(?Symfony\Component\Console\Output\AnsiColorMode $colorMode) : void
 

Force a terminal color mode rendering.

Properties
private static ?Symfony\Component\Console\Output\AnsiColorMode $colorMode = NULL
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.

  • 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 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\Component\Console\Output\AnsiColorMode $colorMode = NULL
private static ?int $height = NULL
private static ?bool $stty = NULL
private static ?int $width = NULL
Methods
public static getColorMode() : Symfony\Component\Console\Output\AnsiColorMode
 

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.

  • 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 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\Component\Console\Output\AnsiColorMode $colorMode) : void
 

Force a terminal color mode rendering.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration