Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > StringBufferTerminalProvider > write

StringBufferTerminalProvider.write() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

This function gets called on every terminal provider upon every message function call on the terminal instance.

Signature:

write(data: string, severity: TerminalProviderSeverity): void;

Parameters

ParameterTypeDescription
datastringThe terminal message.
severityTerminalProviderSeverityThe message severity. Terminal providers can route different kinds of messages to different streams and may choose to ignore verbose or debug messages.

Returns:

void