Skip to content
ConsoleMonster
Class

CapabilityDetector

ConsoleMonster.Capabilities

Namespace
ConsoleMonster.Capabilities
Assembly
ConsoleMonster
Modifiers
sealed

Resolves terminal capabilities and explicit overrides from a captured environment.

Inheritance

  • object
  • CapabilityDetector

Constructors

public CapabilityDetector(TerminalEnvironment? environment = null) #

Creates a detector; without a snapshot, captures the process once.

Parameters

environment ConsoleMonster.Capabilities.TerminalEnvironment? = null optional
Detection inputs, or null to capture the process.

Methods

public TerminalProfile Detect() #

Detects (or returns) the terminal profile.

Returns

TerminalProfile The profile to render with.
public TerminalProfile RefreshFont(TerminalProfile profile, string? fontFace, bool fontIsRaster = false) #

Re-evaluates font-dependent glyph decisions for an existing profile.

Parameters

profile ConsoleMonster.Capabilities.TerminalProfile required
The profile to refresh.
fontFace string? required
The current console font face, or null when unavailable.
fontIsRaster bool = false optional
Whether the current font is a raster font.

Returns

TerminalProfile A profile with refreshed font and glyph decisions.