CharacterStyle

data class CharacterStyle(val foreground: Colour = Colour.DEFAULT, val background: Colour = Colour.DEFAULT, val isBold: Boolean = false, val isItalic: Boolean = false, val isUnderline: Boolean = false)

Represents the visual attributes of a character in the terminal.

Constructors

Link copied to clipboard
constructor(foreground: Colour = Colour.DEFAULT, background: Colour = Colour.DEFAULT, isBold: Boolean = false, isItalic: Boolean = false, isUnderline: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The background color behind the text.

Link copied to clipboard

The text color.

Link copied to clipboard
val isBold: Boolean = false

Whether the text is rendered with bold weight.

Link copied to clipboard
val isItalic: Boolean = false

Whether the text is rendered in italics.

Link copied to clipboard
val isUnderline: Boolean = false

Whether the text has an underline.