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

ParameterTypeDescription
messagestring
terminalITerminal
boxWidthnumber(Optional) The width of the box, defaults to half of the console width.

Returns:

void