EscapeAttr

data class EscapeAttr(val escape: String, val resetMask: Long, val applyMask: Long, val sourceName: Name) : Attr

An [Attr] represented by an fansi escape sequence

Constructors

Link copied to clipboard
constructor(escape: String, resetMask: Long, applyMask: Long, sourceName: Name)

Properties

Link copied to clipboard
open override 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
Link copied to clipboard
open override val escapeOpt: String

escapeOpt the actual ANSI escape sequence corresponding to this Attr

Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val resetMask: Long

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

Link copied to clipboard

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 override fun toString(): String
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