Class
TerminalBackgroundInfo
ConsoleMonster.Output
Describes the detected terminal background colour and its source.
Inheritance
- object
- TerminalBackgroundInfo
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 1
- Method TerminalBackground.TryDetect
Inherited Methods
Properties
public bool IsLight { get; } #Whether the background is classified as light.
public byte Red { get; } #Red channel, meaningful when TerminalBackgroundInfo.HasColor is true.
public byte Green { get; } #Green channel, meaningful when TerminalBackgroundInfo.HasColor is true.
public byte Blue { get; } #Blue channel, meaningful when TerminalBackgroundInfo.HasColor is true.
public double? Luminance { get; } #Relative luminance when an RGB colour was available.
public string Source { get; } #Detection source: console color table, OSC 11, COLORFGBG, or unknown.
public string Decision { get; } #Human-readable explanation of the detection result.