MediaWiki REL1_37
AnsiTermColorer Class Reference

Terminal that supports ANSI escape sequences. More...

Public Member Functions

 __construct ()
 
 color ( $color)
 Return ANSI terminal escape code for changing text attribs/color.
 
 reset ()
 Return ANSI terminal escape code for restoring default text attributes.
 

Detailed Description

Terminal that supports ANSI escape sequences.

Definition at line 39 of file MWTerm.php.

Constructor & Destructor Documentation

◆ __construct()

AnsiTermColorer::__construct ( )

Definition at line 40 of file MWTerm.php.

Member Function Documentation

◆ color()

AnsiTermColorer::color (   $color)

Return ANSI terminal escape code for changing text attribs/color.

Parameters
string$colorSemicolon-separated list of attribute/color codes
Returns
string

Definition at line 49 of file MWTerm.php.

References $wgCommandLineDarkBg.

Referenced by reset().

◆ reset()

AnsiTermColorer::reset ( )

Return ANSI terminal escape code for restoring default text attributes.

Returns
string

Definition at line 62 of file MWTerm.php.

References color().


The documentation for this class was generated from the following file: