Write a string to standard error output.

@param   string   $text  The text to display.
@param   boolean  $nl    True (default) to append a new line at the end of the output string.

@since   1.0
@return $this
346420
public function err($text = '', $nl = true)
	{
		fwrite(STDERR, $this->processor->process($text) . ($nl ? "\n" : null));

		return $this;
	}
96870
public function writeerr($text)
    {
        return $this->write($text, Colors::RED | Colors::BOLD, TextWriter::STDERR);
    }
893893
public static function write($message, $nl = true, $quit = false)
    {
        if (\is_array($message)) {
            $message = implode($nl ? PHP_EOL : '', $message);
        }

        self::stdout(self::renderColor($message), $nl, $quit);
    }
845977
private function writeLine($text, $indent = 0)
    {
        $indent = strlen($text) + $indent;
        $format = '%'.$indent.'s';

        $this->reference .= sprintf($format, $text).PHP_EOL;
    }
1338649
public void writeln(String text) throws IOException {
		this.writer.write(text);
		if (text != null && text.length() > 0) {
			this.writer.write("\n"); //$NON-NLS-1$
		}
	}
1151319
public function setText($text = null)
    {
        $text = trim($text);
        $this->text = 0 < strlen($text) ? $text : null;

        return $this;
    }
702091
public function setText(string $text=null, bool $append=true) :self {
		// append by default or replace text
		$this->content = $append ? $this->content . Format::htmlSafe($text) : Format::htmlSafe($text);
		// return self
		return($this);
	}
898499
public function errTrace($text)
    {
        //====================================================================//
        // Build Error Trace
        $trace = (new Exception())->getTrace()[1];

        //====================================================================//
        // Push Error to Log
        return  self::err("ErrLocalTpl", $trace["class"], $trace["function"], $text);
    }
1238001
public function write($string, $options = null) {
        if ($options === null) {
            $options = OutputVerbosity::NORMAL;
        }

        if ($this->is($options)) {
            $this->buffer->write($string);

            if ( ! $this->isBufferingEnabled()) {
                $this->flushBuffer();
            }
        }

        return $this;
    }
213267
public static function stdout($text, $raw = false)
    {
        if ($raw) {
            return fwrite(STDOUT, $text);
        } elseif (extension_loaded('posix') && posix_isatty(STDOUT)) {
            return fwrite(STDOUT, static::colorize($text));
        } else {
            return fwrite(STDOUT, static::decolorize($text));
        }
    }
328517
public function writeText($text, $color = null, $bgColor = null)
    {
        $this->adapter->writeText($text, $color, $bgColor);
    }
1119021
public function setText($text) {
		if( !is_string($text) ) {
			throw new \Exception('RequireStringParameter');
		}
		$this->setTEXTBody(strip_tags($text));
		$this->setHTMLBody(nl2br($text));
	}
409988
protected function stderr($text, $nl = true, $quit = -200)
    {
        Cli::stderr($text, $nl, $quit);
    }
1087549
public function setEpilog($text)
    {
        if (is_array($text)) {
            $text = implode("\n", $text);
        }
        $this->_epilog = $text;

        return $this;
    }
1130825
private function header($text)
    {
        $this->io()->write($this->line(strlen($text)));
        $this->io()->write($this->color($text, $this->getConfig('fg-header')));
        $this->io()->write($this->line(strlen($text)));
    }
402484
function reportError( $text, $caption, $errCode = eZSiteInstaller::ERR_ABORT )
    {
        eZDebug::writeError( $text, $caption );

        $this->setLastErrorCode( $errCode );
    }
65178
public static function stdout($message, $nl = true, $quit = false)
    {
        fwrite(\STDOUT, $message . ($nl ? PHP_EOL : ''));
        fflush(\STDOUT);

        if (($isTrue = true === $quit) || \is_int($quit)) {
            $code = $isTrue ? 0 : $quit;
            exit($code);
        }
    }