ConsoleSectionOutput
class ConsoleSectionOutput extends StreamOutput
Methods
__construct(resource $stream, array $sections, int|null $verbosity, bool $decorated, OutputFormatterInterface $formatter)
No description
writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL)
Writes a message to the output and adds a newline at the end.
from Output
write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
Writes a message to the output.
from Output
doWrite(string $message, bool $newline)
Writes a message to the output.
clear(int $lines = null)
Clears previous output for this section.
overwrite(array|string $message)
Overwrites the previous output with a new message.
string
getContent()
No description
addContent(string $input)
No description
Details
__construct(resource $stream, array $sections, int|null $verbosity, bool $decorated, OutputFormatterInterface $formatter)
writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL)
Writes a message to the output and adds a newline at the end.
write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
Writes a message to the output.
protected bool
hasColorSupport()
Returns true if the stream supports colorization.
Colorization is disabled if not supported by the stream:
This is tricky on Windows, because Cygwin, Msys2 etc emulate pseudo terminals via named pipes, so we can only check the environment.
Reference: Composer\XdebugHandler\Process::supportsColor https://github.com/composer/xdebug-handler