Skip to content
ConsoleMonster
Cmdlet

Get-ConsoleCapability

Module
ConsoleMonster
Outputs
ConsoleMonster.Capabilities.TerminalProfile

Shows what ConsoleMonster detected about the current terminal.

Syntax

Get-ConsoleCapability
[-Refresh]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

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 Decisions

Show the profile and the decisions

Example 2

Get-ConsoleCapability | Select-Object Width, Height, Glyphs, ColorDepth | Show-ConsoleTable

Inspect 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 Source

Read 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 optional
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.