o

sbt.internal.util

EscHelpers

object EscHelpers

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EscHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val ESC: Char('\u001B')

    Escape character, used to introduce an escape sequence.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def cursorPosition(s: String): Int
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hasEscapeSequence(s: String): Boolean

    Returns true if the string contains the ESC character.

    Returns true if the string contains the ESC character.

    TODO - this should handle raw CSI (not used much)

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def removeEscapeSequences(s: String): String

    Returns the string s with escape sequences removed.

    Returns the string s with escape sequences removed. An escape sequence starts with the ESC character (decimal value 27) and ends with an escape terminator.

    See also

    isEscapeTerminator

  19. def strip(bytes: Array[Byte], stripAnsi: Boolean, stripColor: Boolean): (Array[Byte], Int)

    Strips ansi escape and color codes from an input string.

    Strips ansi escape and color codes from an input string.

    bytes

    the input bytes

    stripAnsi

    toggles whether or not to remove general ansi escape codes

    stripColor

    toggles whether or not to remove ansi color codes

    returns

    a string with the escape and color codes removed depending on the input parameter along with the length of the output string (which may be smaller than the returned array)

  20. def stripColorsAndMoves(s: String): String

    Removes the ansi escape sequences from a string and makes a best attempt at calculating any ansi moves by hand.

    Removes the ansi escape sequences from a string and makes a best attempt at calculating any ansi moves by hand. For example, if the string contains a backspace character followed by a character, the output string would replace the character preceding the backspaces with the character proceding it. This is in contrast to strip which just removes all ansi codes entirely.

    s

    the input string

    returns

    a string containing the original characters of the input stream with the ansi escape codes removed.

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def stripMoves(s: String): String
    Annotations
    @deprecated
    Deprecated

    (Since version 1.4.2) use EscHelpers.strip

Inherited from AnyRef

Inherited from Any

Ungrouped