Class
CapabilityDetector
ConsoleMonster.Capabilities
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
- Detection inputs, or null to capture the process.
Methods
public TerminalProfile Detect() #Detects (or returns) the terminal profile.
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
- The profile to refresh.
- fontFace string?
- The current console font face, or null when unavailable.
- fontIsRaster bool = false
- Whether the current font is a raster font.