MediaWiki REL1_30
MWTerm.php
Go to the documentation of this file.
1<?php
32 function __construct() {
33 }
34
41 public function color( $color ) {
43
44 $light = $wgCommandLineDarkBg ? "1;" : "0;";
45
46 return "\x1b[{$light}{$color}m";
47 }
48
54 public function reset() {
55 return $this->color( 0 );
56 }
57}
58
65 public function color( $color ) {
66 return '';
67 }
68
69 public function reset() {
70 return '';
71 }
72}
in the sidebar</td >< td > font color
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
Terminal that supports ANSI escape sequences.
Definition MWTerm.php:31
reset()
Return ANSI terminal escape code for restoring default text attributes.
Definition MWTerm.php:54
color( $color)
Return ANSI terminal escape code for changing text attribs/color.
Definition MWTerm.php:41
A colour-less terminal.
Definition MWTerm.php:64
color( $color)
Definition MWTerm.php:65