Get-ConsoleCapability
Shows what ConsoleMonster detected about the current terminal.
Syntax
Get-ConsoleCapability
[-Refresh]
[<CommonParameters>]#All Parameter SetsDescription
Returns the terminal profile: kind, mode (Interactive, Stream, Plain), colour depth, glyph tier, size, VT support, console font and the reasons behind each decision. -Refresh detects again (after a resize or font change).
Examples
Example 1
Get-ConsoleCapability | Select-Object -ExpandProperty DecisionsShow the profile and the decisions
Example 2
Get-ConsoleCapability | Select-Object Width, Height, Glyphs, ColorDepth | Show-ConsoleTableInspect the current terminal dimensions and output tiers
Example 3
Get-ConsoleDemo -Slug 'everyday-formatting' | Select-Object -ExpandProperty Source
Get-ConsoleDemo -Slug 'readiness-report' | Select-Object -ExpandProperty Source
Get-ConsoleDemo -Slug 'welcome-rich' | Select-Object -ExpandProperty SourceRead any of these gallery scripts to see Get-ConsoleCapability in a complete example. Each lookup returns the script's source. Use the same slug with Show-ConsoleDemo to run it.
Parameters
- -Refresh SwitchParameter
- Detect again instead of returning the cached profile.
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.