Module: Rich::StyleAttribute
- Defined in:
- lib/rich/style.rb
Overview
Style attributes represented as bit flags
Constant Summary collapse
- BOLD =
1
1 << 0
- DIM =
2
1 << 1
- ITALIC =
4
1 << 2
- UNDERLINE =
8
1 << 3
- BLINK =
16
1 << 4
- BLINK2 =
32 (rapid blink)
1 << 5
- REVERSE =
64
1 << 6
- CONCEAL =
128
1 << 7
- STRIKE =
256
1 << 8
- UNDERLINE2 =
512 (double underline)
1 << 9
- FRAME =
1024
1 << 10
- ENCIRCLE =
2048
1 << 11
- OVERLINE =
4096
1 << 12
- ALL =
{ bold: BOLD, dim: DIM, italic: ITALIC, underline: UNDERLINE, blink: BLINK, blink2: BLINK2, reverse: REVERSE, conceal: CONCEAL, strike: STRIKE, underline2: UNDERLINE2, frame: FRAME, encircle: ENCIRCLE, overline: OVERLINE }.freeze
- NAMES =
ALL.keys.freeze