Termisu::Attribute
Inherits Enum / Comparable / Value / Object
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
Constants
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