Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > ITerminalProvider > write

ITerminalProvider.write() method

This API is provided as a beta 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

Parameter

Type

Description

data

string

The terminal message.

severity

TerminalProviderSeverity

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

Returns:

void