Lines Matching +refs:text +refs:line
100 * Convenience function to print a line in a given color
102 * @param string $line the line to print, a new line is added automatically
108 public function ptln($line, $color, $channel = STDOUT)
111 fwrite($channel, rtrim($line) . "\n");
116 * Returns the given text wrapped in the appropriate color and reset code
118 * @param string $text string to wrap
123 public function wrap($text, $color)
125 return $this->getColorCode($color) . $text . $this->getColorCode('reset');