API Reference
Class
CapabilityDetector
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() #Returns:
TerminalProfileDetects (or returns) the terminal profile.
Returns
The profile to render with.
public TerminalProfile RefreshFont(TerminalProfile profile, String? fontFace, Boolean fontIsRaster = false) #Returns:
TerminalProfileRe-evaluates font-dependent glyph decisions for an existing profile.
Parameters
- profile ConsoleMonster.Capabilities.TerminalProfile
- The profile to refresh.
- fontFace System.String?
- The current console font face, or null when unavailable.
- fontIsRaster System.Boolean = false
- Whether the current font is a raster font.
Returns
A profile with refreshed font and glyph decisions.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?