CellAttributes

data class CellAttributes(val foreground: CellColor = CellColor.DEFAULT, val background: CellColor = CellColor.DEFAULT, val underlineColor: CellColor = CellColor.DEFAULT, val bold: Boolean = false, val faint: Boolean = false, val italic: Boolean = false, val underlineStyle: UnderlineStyle = UnderlineStyle.NONE, val strikethrough: Boolean = false, val overline: Boolean = false, val blink: Boolean = false, val inverse: Boolean = false, val conceal: Boolean = false, val selectiveEraseProtected: Boolean = false, val hyperlinkId: Int = 0)

Public representation of cell attributes for UI/rendering.

foreground, background, and underlineColor are renderer-facing color descriptors. underlineColor uses CellColor.DEFAULT to mean "derive from the effective foreground color" unless the renderer has a different product policy.

hyperlinkId is a numeric handle for OSC 8 hyperlinks. 0 means no link; positive ids are owned by the host or host layer's URL pool.

Constructors

Link copied to clipboard
constructor(foreground: CellColor = CellColor.DEFAULT, background: CellColor = CellColor.DEFAULT, underlineColor: CellColor = CellColor.DEFAULT, bold: Boolean = false, faint: Boolean = false, italic: Boolean = false, underlineStyle: UnderlineStyle = UnderlineStyle.NONE, strikethrough: Boolean = false, overline: Boolean = false, blink: Boolean = false, inverse: Boolean = false, conceal: Boolean = false, selectiveEraseProtected: Boolean = false, hyperlinkId: Int = 0)

Properties

Link copied to clipboard

Text background color.

Link copied to clipboard

Blinking text presentation.

Link copied to clipboard

Bold/intense text weight.

Link copied to clipboard

Concealed/hidden text presentation.

Link copied to clipboard

Faint/dim text intensity.

Link copied to clipboard

Text foreground color.

Link copied to clipboard

OSC 8 hyperlink handle; 0 means no hyperlink.

Link copied to clipboard

Reverse-video presentation.

Link copied to clipboard

Italic text style.

Link copied to clipboard

Overline decoration.

Link copied to clipboard

Whether DEC selective erase skips the cell.

Link copied to clipboard

Strikethrough decoration.

Link copied to clipboard

Explicit underline color, or default/foreground.

Link copied to clipboard

Underline shape.