Skip to content
ConsoleMonster

API Reference

Class

CapabilityDetector

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 optionalposition: 0
Detection inputs, or null to capture the process.

Methods

public TerminalProfile Detect() #
Returns: TerminalProfile

Detects (or returns) the terminal profile.

Returns

The profile to render with.

public TerminalProfile RefreshFont(TerminalProfile profile, String? fontFace, Boolean fontIsRaster = false) #
Returns: TerminalProfile

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

Parameters

profile ConsoleMonster.Capabilities.TerminalProfile requiredposition: 0
The profile to refresh.
fontFace System.String? requiredposition: 1
The current console font face, or null when unavailable.
fontIsRaster System.Boolean = false optionalposition: 2
Whether the current font is a raster font.

Returns

A profile with refreshed font and glyph decisions.