Attr

sealed class Attr : Attrs

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val applyMask: Long

Which bits of the [Str.State] integer these [Attrs] will set to 1 when it is applied

Link copied to clipboard
Link copied to clipboard
abstract val escapeOpt: String?

escapeOpt the actual ANSI escape sequence corresponding to this Attr

Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val resetMask: Long

Which bits of the [Str.State] integer these [Attrs] will override when it is applied

Functions

Link copied to clipboard
open operator fun invoke(s: Str): Str

Apply these [Attrs] to the given [fansi.Str], making it take effect across the entire length of that string.

open operator fun invoke(s: String): Str
Link copied to clipboard
open operator override fun plus(other: Attrs): Attrs

Combine this [fansi.Attr] with one or more other [fansi.Attr]s so they can be passed around together

Link copied to clipboard
open fun transform(state: State): Long

Apply the current [Attrs] to the [Str.State] integer, modifying it to represent the state after all changes have taken effect