enum

TermBuf::Attributes

Inherits Enum < Comparable < Value < Object

Stability: stable — changes only in a major release.

Character attributes that can be combined freely.

The underline styles are deliberately not in here: a cell has at most one of them, so they live in Underline where the type enforces that.

Constants

Bold = 1_u16
Faint = 2_u16
Italic = 4_u16
SlowBlink = 8_u16
RapidBlink = 16_u16
Reverse = 32_u16
Conceal = 64_u16
Strike = 128_u16
Overline = 256_u16
Superscript = 512_u16
Subscript = 1024_u16
None = 0_u16
All = 2047_u16

Instance methods

bold?

Returns true if this enum value contains Bold

Source
conceal?

Returns true if this enum value contains Conceal

Source
faint?

Returns true if this enum value contains Faint

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
strike?

Returns true if this enum value contains Strike

Source
subscript?

Returns true if this enum value contains Subscript

Source
superscript?

Returns true if this enum value contains Superscript

Source