Skip to content
ConsoleMonster
Cmdlet

Write-ConsoleWidget

Module ConsoleMonster
Inputs
System.Object[]

Writes console widgets once (tables, trees, panels, charts, dashboards).

Syntax

Write-ConsoleWidget [-Widget] <Object[]> [-Width <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Writes console widgets once (tables, trees, panels, charts, dashboards).

Renders each widget at the terminal width in the detected mode: VT colours and Unicode glyphs in a terminal, append-only lines when redirected, plain ASCII with CONSOLEMONSTER_MODE=plain. Override detection with CONSOLEMONSTER_COLOR, CONSOLEMONSTER_GLYPHS, CONSOLEMONSTER_MODE or NO_COLOR.

Examples

Authored help example

EXAMPLE 1

Write-ConsoleWidget -Widget @('Value')

Parameters

-Widget Object[] requiredposition: 0pipeline: True (ByValue)
The widgets to write; strings are treated as markup.
-Width Int32 optional
Render at this width instead of the terminal width.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.