Cmdlet
Write-ConsoleWidget
Writes console widgets once (tables, trees, panels, charts, dashboards).
Syntax
Write-ConsoleWidget [-Widget] <Object[]> [-Width <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
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
EXAMPLE 1
Write-ConsoleWidget -Widget @('Value')Parameters
- -Widget Object[]
- The widgets to write; strings are treated as markup.
- -Width Int32
- 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.