|
@@ 837-840 (lines=4) @@
|
| 834 |
|
unset($bold); |
| 835 |
|
$coloredString = ''; |
| 836 |
|
// Check if given foreground color found |
| 837 |
|
if ( isset(static::$colours['fore'][$foregroundColor]) ) |
| 838 |
|
{ |
| 839 |
|
$coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
| 840 |
|
} |
| 841 |
|
// Check if given background color found |
| 842 |
|
if ( isset(static::$colours['back'][$backgroundColor]) ) |
| 843 |
|
{ |
|
@@ 842-845 (lines=4) @@
|
| 839 |
|
$coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
| 840 |
|
} |
| 841 |
|
// Check if given background color found |
| 842 |
|
if ( isset(static::$colours['back'][$backgroundColor]) ) |
| 843 |
|
{ |
| 844 |
|
$coloredString .= "\033[" . static::$colours['back'][$backgroundColor] . "m"; |
| 845 |
|
} |
| 846 |
|
// Add string and end coloring |
| 847 |
|
$coloredString .= $string . "\033[0m"; |
| 848 |
|
|