TextStyle

interface TextStyle

Styles that can be applied to text by terminals that support it.

You can combine styles with on or plus

Inheritors

Properties

Link copied to clipboard
abstract val bg: TextStyle

Create a with this color as the background.

Link copied to clipboard
abstract val bgColor: Color?
Link copied to clipboard
abstract val bold: Boolean?
Link copied to clipboard
abstract val color: Color?
Link copied to clipboard
abstract val dim: Boolean?
Link copied to clipboard
abstract val hyperlink: String?
Link copied to clipboard
abstract val hyperlinkId: String?
Link copied to clipboard
abstract val inverse: Boolean?
Link copied to clipboard
abstract val italic: Boolean?
Link copied to clipboard
abstract val strikethrough: Boolean?
Link copied to clipboard
abstract val underline: Boolean?

Functions

Link copied to clipboard
open operator fun invoke(text: String): String

Apply this style to text.

Link copied to clipboard
abstract infix fun on(bg: TextStyle): TextStyle

Create a style with the foreground color of bg as the background color of the new style.

Link copied to clipboard
open operator fun plus(other: TextStyle): TextStyle

Return a new style that combines this style with other.

open operator fun plus(other: TextStyles): TextStyle