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.
1 Makes the text bold.
Same as Bright.
1 Makes the text color bright.
Same as Bold.
2 Dims the text color.
4 Draws a line below the text.
8 Makes the text blink slowly.
16 Swaps the foreground and background colors of the text.
32 Makes the text invisible.
64 Italicizes the text.
128 Makes the text blink quickly.
256 Crosses out the text.
512 Draws two lines below the text.
1024 Draws a line above the text.
0 2047 Returns true if this enum value contains Blink
Returns true if this enum value contains BlinkFast
Returns true if this enum value contains Bold
Returns true if this enum value contains Bright
Returns true if this enum value contains Dim
Returns true if this enum value contains DoubleUnderline
Returns true if this enum value contains Hidden
Returns true if this enum value contains Italic
Returns true if this enum value contains Overline
Returns true if this enum value contains Reverse
Returns true if this enum value contains Strikethrough
Returns true if this enum value contains Underline
Enum
Enum
Enum
Enum
Comparable(Enum)
Value
Object
Object
Object
Returns true if this enum value contains DoubleUnderline
Returns true if this enum value contains Strikethrough
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/Colorize/Mode.html