Attr

sealed trait Attr extends Attrs

Represents a single, atomic ANSI escape sequence that results in a color, background or decoration being added to the output. May or may not have an escape sequence (escapeOpt), as some attributes (e.g. Bold.Off) are not widely/directly supported by terminals and so fansi.Str supports them by rendering a hard Attr.Reset and then re-rendering other Attrs that are active.

Many of the codes were stolen shamelessly from

http://misc.flogisoft.com/bash/tip_colors_and_formatting

Companion:
object
trait Attrs
class Object
trait Matchable
class Any

Value members

Abstract methods

def escapeOpt: Option[String]

escapeOpt the actual ANSI escape sequence corresponding to this Attr

escapeOpt the actual ANSI escape sequence corresponding to this Attr

def name: String

Concrete methods

def ++(other: Attrs): Attrs

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

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

def attrs: Seq[Attr]

Inherited methods

def apply(s: Str): Str

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

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

Inherited from:
Attrs
def applyMask: Long

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

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

Inherited from:
Attrs
def resetMask: Long

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

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

Inherited from:
Attrs
def 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

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

Inherited from:
Attrs