Table of Contents

Class ColorCapability

Namespace
MiniTui
Assembly
MiniTui.dll

Detects how many colors the terminal supports from the environment (§4.2).

public static class ColorCapability
Inheritance
ColorCapability
Inherited Members

Methods

Detect(ColorMode?)

Detect the color mode. An explicit mode wins; otherwise NO_COLOR, COLORTERM, WT_SESSION, TERM_PROGRAM and TERM are checked in that order.

public static ColorMode Detect(ColorMode? explicitMode = null)

Parameters

explicitMode ColorMode?

Returns

ColorMode