Home > @rushstack/terminal > Terminal
Terminal class
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 class facilitates writing to a console.
Signature:
export declare class Terminal implements ITerminal
Implements: ITerminal
Constructors
Constructor | Modifiers | Description |
|---|---|---|
(BETA) Constructs a new instance of the |
Methods
Method | Modifiers | Description |
|---|---|---|
(BETA) Subscribe a new terminal provider. | ||
(BETA) Unsubscribe a terminal provider. If the provider isn't subscribed, this function does nothing. | ||
(BETA) Write a generic message to the terminal | ||
(BETA) Write a debug-level message. | ||
(BETA) Write a debug-level message followed by a newline. | ||
(BETA) Write an error message to the console with red text. | ||
(BETA) Write an error message to the console with red text, followed by a newline. | ||
(BETA) Write a generic message to the terminal, followed by a newline | ||
(BETA) Write a verbose-level message. | ||
(BETA) Write a verbose-level message followed by a newline. | ||
(BETA) Write a warning message to the console with yellow text. | ||
(BETA) Write a warning message to the console with yellow text, followed by a newline. |