enum
Termisu::Attribute
Overview
Text attributes for terminal cells.
Attributes can be combined using bitwise OR (|). Multiple attributes are supported, but only one color can be set per foreground/background.
Example:
attr = Termisu::Attribute::Bold | Termisu::Attribute::Underline
Defined in:
termisu/attribute.crEnum Members
-
None =
0_u16 -
No attributes
-
Bold =
1_u16 -
Bold/bright text
-
Underline =
2_u16 -
Underlined text (not supported on all terminals)
-
Reverse =
4_u16 -
Reverse video (swap fg/bg colors)
-
Blink =
8_u16 -
Blinking text
-
Dim =
16_u16 -
Dim/faint text
-
Cursive =
32_u16 -
Italic/cursive text (not supported on all terminals)
-
Italic =
32_u16 -
Alias for Cursive (more common name)
-
Hidden =
64_u16 -
Hidden/invisible text
-
Strikethrough =
128_u16 -
Strikethrough text (crossed-out)
-
All =
255_u16
Instance Method Summary
-
#blink?
Returns
trueif this enum value containsBlink -
#bold?
Returns
trueif this enum value containsBold -
#cursive?
Returns
trueif this enum value containsCursive -
#dim?
Returns
trueif this enum value containsDim -
#hidden?
Returns
trueif this enum value containsHidden -
#italic?
Returns
trueif this enum value containsItalic -
#none?
Returns
trueif this enum value containsNone -
#reverse?
Returns
trueif this enum value containsReverse -
#strikethrough?
Returns
trueif this enum value containsStrikethrough -
#underline?
Returns
trueif this enum value containsUnderline