enum

Colorize::Mode

Inherits Enum / Comparable / Value / Object

A text decoration.

Note that not all text decorations are supported in all terminals. When a text decoration is not supported, it will leave the text unaffected.

Constants

Bold = 1

Makes the text bold.

Same as Bright.

Bright = 1

Makes the text color bright.

Same as Bold.

Dim = 2

Dims the text color.

Underline = 4

Draws a line below the text.

Blink = 8

Makes the text blink slowly.

Reverse = 16

Swaps the foreground and background colors of the text.

Hidden = 32

Makes the text invisible.

Italic = 64

Italicizes the text.

BlinkFast = 128

Makes the text blink quickly.

Strikethrough = 256

Crosses out the text.

DoubleUnderline = 512

Draws two lines below the text.

Overline = 1024

Draws a line above the text.

None = 0
All = 2047

Instance methods

bold?

Returns true if this enum value contains Bold

Source
bright?

Returns true if this enum value contains Bright

Source
dim?

Returns true if this enum value contains Dim

Source
double_underline?

Returns true if this enum value contains DoubleUnderline

Source
hidden?

Returns true if this enum value contains Hidden

Source
italic?

Returns true if this enum value contains Italic

Source
none?
Source
overline?

Returns true if this enum value contains Overline

Source
reverse?

Returns true if this enum value contains Reverse

Source
strikethrough?

Returns true if this enum value contains Strikethrough

Source
underline?

Returns true if this enum value contains Underline

Source