Trait/Object

utest.ufansi

Attr

Related Docs: object Attr | package ufansi

Permalink

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

Linear Supertypes
Attrs, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Attr
  2. Attrs
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def applyMask: Long

    Permalink

    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

    Definition Classes
    Attrs
  2. abstract def escapeOpt: Option[String]

    Permalink

    escapeOpt the actual ANSI escape sequence corresponding to this Attr

  3. abstract def name: String

    Permalink
  4. abstract def resetMask: Long

    Permalink

    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

    Definition Classes
    Attrs

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(other: Attrs): Attrs

    Permalink

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

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

    Definition Classes
    AttrAttrs
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def apply(s: Str): Str

    Permalink

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

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

    Definition Classes
    Attrs
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def attrs: Seq[Attr]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def transform(state: State): Long

    Permalink

    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

    Definition Classes
    Attrs
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Attrs

Inherited from AnyRef

Inherited from Any

Ungrouped