public function ptln($line, $color, $channel = STDOUT)
    {
        $this->set($color);
        fwrite($channel, rtrim($line) . "\n");
        $this->reset();
    }
public function ptln($line, $color, $channel = STDOUT)
    {
        $this->set($color);
        fwrite($channel, rtrim($line) . "\n");
        $this->reset();
    }
public function ptln ( $ line , $ color , $ channel = STDOUT ) { $ this -> set ( $ color ) ; fwrite ( $ channel , rtrim ( $ line ) . "\n" ) ; $ this -> reset ( ) ; }
Convenience function to print a line in a given color

@param string   $line    the line to print, a new line is added automatically
@param string   $color   one of the available color names
@param resource $channel file descriptor to write to

@throws Exception
Convenience function to print a line in a given color