MediaWiki
1.30.0
|
Terminal that supports ANSI escape sequences. More...
Public Member Functions | |
__construct () | |
color ( $color) | |
Return ANSI terminal escape code for changing text attribs/color. More... | |
reset () | |
Return ANSI terminal escape code for restoring default text attributes. More... | |
Terminal that supports ANSI escape sequences.
Definition at line 31 of file MWTerm.php.
AnsiTermColorer::__construct | ( | ) |
Definition at line 32 of file MWTerm.php.
AnsiTermColorer::color | ( | $color | ) |
Return ANSI terminal escape code for changing text attribs/color.
string | $color | Semicolon-separated list of attribute/color codes |
Definition at line 41 of file MWTerm.php.
References $wgCommandLineDarkBg, and global.
Referenced by reset().
AnsiTermColorer::reset | ( | ) |
Return ANSI terminal escape code for restoring default text attributes.
Definition at line 54 of file MWTerm.php.
References color().