trait Terminal extends AutoCloseable

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

Abstract Value Members

  1. abstract def close(): Unit
    Definition Classes
    AutoCloseable
    Annotations
    @throws( classOf[java.lang.Exception] )
  2. abstract def errorStream: OutputStream

    Gets the error stream for this Terminal.

    Gets the error stream for this Terminal.

    returns

    the error stream.

  3. abstract def getHeight: Int

    Gets the current height of the terminal.

    Gets the current height of the terminal. The implementation reads a property from the jline config which is updated if it has been more than a second since the last update. It is thus possible for this value to be stale.

    returns

    the terminal height.

  4. abstract def getLineHeightAndWidth(line: String): (Int, Int)

    Returns the height and width of the current line that is displayed on the terminal.

    Returns the height and width of the current line that is displayed on the terminal. If the most recently flushed byte is a newline, this will be (0, 0).

    returns

    the (height, width) pair

  5. abstract def getWidth: Int

    Gets the current width of the terminal.

    Gets the current width of the terminal. The implementation reads a property from the jline config which is updated if it has been more than a second since the last update. It is thus possible for this value to be stale.

    returns

    the terminal width.

  6. abstract def inputStream: InputStream

    Gets the input stream for this Terminal.

    Gets the input stream for this Terminal. This could be a wrapper around System.in for the process or it could be a remote input stream for a network channel.

    returns

    the input stream.

  7. abstract def isAnsiSupported: Boolean

    Returns true if the terminal supports ansi characters.

    Returns true if the terminal supports ansi characters.

    returns

    true if the terminal supports ansi escape codes.

  8. abstract def isColorEnabled: Boolean

    Returns true if color is enabled for this terminal.

    Returns true if color is enabled for this terminal.

    returns

    true if color is enabled for this terminal.

  9. abstract def isEchoEnabled: Boolean

    Returns true if the terminal has echo enabled.

    Returns true if the terminal has echo enabled.

    returns

    true if the terminal has echo enabled.

  10. abstract def isSuccessEnabled: Boolean

    Returns true if the terminal has success enabled, which it may not if it is for batch commands because the client will print the success results when received from the server.

    Returns true if the terminal has success enabled, which it may not if it is for batch commands because the client will print the success results when received from the server.

    returns

    true if the terminal has success enabled

  11. abstract def isSupershellEnabled: Boolean

    Returns true if the terminal has supershell enabled.

    Returns true if the terminal has supershell enabled.

    returns

    true if the terminal has supershell enabled.

  12. abstract def outputStream: OutputStream

    Gets the output stream for this Terminal.

    Gets the output stream for this Terminal.

    returns

    the output stream.

  13. abstract def setEchoEnabled(toggle: Boolean): Unit

    Toggles whether or not the terminal should echo characters back to stdout

    Toggles whether or not the terminal should echo characters back to stdout

    returns

    the previous value of the toggle

Concrete 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 def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped