Skip to content

@ui5/logger/writers/InteractiveConsole

@ui5/logger/writers/InteractiveConsole

Interactive console writer for ui5 serve — a live, region-based status display rendered in a persistent bottom region. Owns process.stderr while active. Sibling of writers/Console; exactly one console-writing writer may be active at a time.

The writer is universal: it renders whichever regions have received data. No command knowledge. Regions render top-to-bottom in a fixed order — header, root project, server, build status — and hidden regions collapse.

All state is event-driven. See the design at docs/interactive-console-writer.md and the public event API exposed by @ui5/logger.

Constructor

new @ui5/logger/writers/InteractiveConsole()

Source: logger/lib/writers/InteractiveConsole.js, line 51

Methods

disable()

Description: Detaches all event listeners and stops writing to the output stream.

Source: logger/lib/writers/InteractiveConsole.js, line 129

enable()

Description: Attaches all event listeners and starts writing to the output stream. Emits ui5.log.stop-console first so any currently-active console- writing writer detaches before this one takes over.

Source: logger/lib/writers/InteractiveConsole.js, line 111

(static) init()

Description: Creates a new instance and subscribes it to all events. Any currently- active console-writing writer is displaced by the ui5.log.stop-console event that enable() emits.

Source: logger/lib/writers/InteractiveConsole.js, line 503