= '', string $background = '', array $options = []) bold underscore blink reverse conceal Is it a color? $color = new Color('#000', 'white', ['underscore', 'reverse']); Color Class Console 7.0
section. * * @param string $section The section name * @param string $text The text message * @param integer $size The maximum size allowed for a line (65 by default) */ public function formatSection($section, $text, $size = null) { return sprintf(">> %-$9s %s", $section, $this->excerpt($text, $size)); } /** * Formats a message within a section. */ public function formatSection(string $section, string $message, string $style = 'info'): string { return sprintf('<%s>[%s]</%s> %s', $style, $section, $style, $message); } Console 7.0 circa 2023 Tasks 1.1 circa 2008
substr_count($content, "\n")); } public function init(Stylesheet $stylesheet, LoggerInterface $logger): void { $this->stylesheet = $stylesheet; $this->viewport->init($stylesheet, $logger); } public function update(MessageInterface $message): ?MessageInterface { $this->viewport->update($message); return null; } public function render(): string { return $this->stylesheet['span p-1 border-double'] ->render($this->viewport->render()); } A Pager Terminal 8.0 Update the Viewport Propagate init() Render the Viewport Rely on another widget
support Terminal 8.0 if ($message instanceof WindowSizeMessage) { $this->viewport->width($message->width); $this->viewport->height($message->height); } Window resizing support