TerminalRenderAttrs
Stable public render attribute word decoder and packer.
The public ABI is intentionally separate from core's internal attribute storage. The bit layout is:
bits 0..1: foreground color kind.
bits 2..25: foreground color value.
bits 26..27: background color kind.
bits 28..51: background color value.
bit 52: bold.
bit 53: faint.
bit 54: italic.
bits 55..57: underline style.
bit 58: blink.
bit 59: inverse.
bit 60: invisible.
bit 61: strikethrough.
bits 62..63: reserved and currently zero.
RGB values are encoded as 0xRRGGBB, indexed values as 0..255, and default color values as zero.
Properties
Functions
Returns the background color kind.
Returns the background color value.
Returns the foreground color kind.
Returns the foreground color value.
Returns whether invisible text style is enabled.
Returns whether strikethrough decoration is enabled.
Packs a public render attribute word.
Returns the underline style.