Module: Sai::Terminal::ColorMode Private

Defined in:
lib/sai/terminal/color_mode.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Represents different color support levels for terminal interfaces

Author:

Since:

  • 0.1.0

Constant Summary collapse

NO_COLOR =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The terminal does not support color output

Returns:

  • (Integer) —

    the color mode

Author:

Since:

  • 0.1.0

0
BASIC =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The terminal supports 8 colors (3-bit)

Returns:

  • (Integer) —

    the color mode

Author:

Since:

  • 0.1.0

1
ANSI =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The terminal supports 16 colors (4-bit)

Returns:

  • (Integer) —

    the color mode

Author:

Since:

  • 0.1.0

2
ADVANCED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The terminal supports 256 colors (8-bit)

Returns:

  • (Integer) —

    the color mode

Author:

Since:

  • 0.1.0

3
TRUE_COLOR =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The terminal supports 16 million colors (24-bit)

Returns:

  • (Integer) —

    the color mode

Author:

Since:

  • 0.1.0

4