Terminal
in package
Table of Contents
Constants
- DEFAULT_COLOR_MODE = \Symfony\Component\Console\Output\AnsiColorMode::Ansi4
Methods
- getColorMode() : 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/.
- getHeight() : int
- Gets the terminal height.
- getWidth() : int
- Gets the terminal width.
- setColorMode() : void
- Force a terminal color mode rendering.
Constants
DEFAULT_COLOR_MODE
public
mixed
DEFAULT_COLOR_MODE
= \Symfony\Component\Console\Output\AnsiColorMode::Ansi4
Methods
getColorMode()
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
static getColorMode() : AnsiColorMode
Return values
AnsiColorModegetHeight()
Gets the terminal height.
public
getHeight() : int
Return values
intgetWidth()
Gets the terminal width.
public
getWidth() : int
Return values
intsetColorMode()
Force a terminal color mode rendering.
public
static setColorMode(AnsiColorMode|null $colorMode) : void
Parameters
- $colorMode : AnsiColorMode|null