IsColorModeAvailable(ColorMode)

Method

Namespace: ANSITerm

Declared in: ANSITerm.IConsoleBackend


Checks if the specified color mode is supported.

Syntax

public bool IsColorModeAvailable(
	ColorMode mode
)

Remarks

On platforms where the terminfo database is present, the maximum color count is taken from it. It may differ with your actual terminal capabilities, so make sure that your environment uses proper terminfo definition.

See also

  • ColorMode
  • TrySetColorMode(ColorMode)

  • Back to index