Attrs

sealed trait Attrs

Represents one or more fansi.Attrs, that can be passed around as a set or combined with other sets of fansi.Attrs.

Note that a single Attr is a subclass of Attrs. If you want to know if this contains multiple Attrs, you should check for Attrs.Multiple.

Companion:
object
class Object
trait Matchable
class Any
trait Attr
class ResetAttr
class Multiple

Value members

Abstract methods

def ++(other: Attrs): Attrs

Combine this fansi.Attrs with other fansi.Attrss, returning one which when applied is equivalent to applying this one and then the other one in series.

Combine this fansi.Attrs with other fansi.Attrss, returning one which when applied is equivalent to applying this one and then the other one in series.

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

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

Concrete 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.

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