fansi

Str

object Str extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Str
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type State = Int

    An fansi.Str's colors array is filled with Ints, each representing the ANSI state of one character encoded in its bits.

    An fansi.Str's colors array is filled with Ints, each representing the ANSI state of one character encoded in its bits. Each Attr belongs to a Category that occupies a range of bits within each int:

    31... 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 |--------| |-----------------------| |-----------------------| | | |bold | | | | |reversed | | | |underlined | | |foreground-color | |background-color |unused

    The 0000 0000 0000 0000 int corresponds to plain text with no decoration

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(raw: CharSequence, strict: Boolean = false): Str

    Creates an fansi.Str from a non-fansi java.lang.String or other CharSequence.

    Creates an fansi.Str from a non-fansi java.lang.String or other CharSequence.

    Note that this method is implicit, meaning you can pass in a java.lang.String anywhere an fansi.Str is required and it will be automatically parsed and converted for you.

    strict

    throw an exception if an unrecognized fansi sequence exists. Off by default

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromArrays(chars: Array[Char], colors: Array[State]): Str

    Constructs a fansi.Str from an array of characters and an array of colors.

    Constructs a fansi.Str from an array of characters and an array of colors. Performs a defensive copy of the arrays, and validates that they both have the same length

    Useful together with getChars and getColors if you want to do manual work on the two mutable arrays before stitching them back together into one immutable fansi.Str

  13. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  15. implicit def implicitApply(raw: CharSequence): Str

    Make the construction of fansi.Strs from Strings and other CharSequences automatic

  16. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped