Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > PrintUtilities > printMessageInBox

PrintUtilities.printMessageInBox() method​

Displays a message in the console wrapped in a box UI.

Signature:

static printMessageInBox(message: string, terminal: ITerminal, boxWidth?: number): void;

Parameters​

Parameter

Type

Description

message

string

The message to display.

terminal

ITerminal

The terminal to write the message to.

boxWidth

number

(Optional) The width of the box, defaults to half of the console width.

Returns:

void