Packages

object Readline extends Object with Readline

Readline Singleton

Annotations
@native() @JSImport("readline", JSImport.Namespace)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Readline
  2. Readline
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 clearLine(stream: IWritable, dir: Int, callback: Function = js.native): Boolean

    Clears current line of given TTY stream in a specified direction.

    Clears current line of given TTY stream in a specified direction. dir should have one of following values:

    • -1 - to the left from cursor
    • 0 - the entire line
    • 1 - to the right from cursor
    Definition Classes
    Readline
    Example:
    1. readline.clearLine(stream, dir)

  6. def clearScreenDown(stream: IWritable, callback: Function = js.native): Boolean

    Clears the screen from the current position of the cursor down.

    Clears the screen from the current position of the cursor down.

    Definition Classes
    Readline
    Example:
    1. readline.clearScreenDown(stream)

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def createInterface(options: ReadlineOptions): Interface

    Creates a readline Interface instance.

    Creates a readline Interface instance.

    Definition Classes
    Readline
    Example:
    1. readline.createInterface(options)

  9. def cursorTo(stream: IWritable, x: Int): Unit
    Definition Classes
    Readline
  10. def cursorTo(stream: IWritable, x: Int, callback: Function): Unit
    Definition Classes
    Readline
  11. def cursorTo(stream: IWritable, x: Int, y: Int, callback: Function = js.native): Unit

    Move cursor to the specified position in a given TTY stream.

    Move cursor to the specified position in a given TTY stream.

    Definition Classes
    Readline
    Example:
    1. readline.cursorTo(stream, x, y)

  12. def emitKeypressEvents(stream: IReadable, interface: Interface = js.native): Unit
    Definition Classes
    Readline
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  20. def moveCursor(stream: IWritable, dx: Int, dy: Int, callback: Function = js.native): Unit

    Move cursor relative to it's current position in a given TTY stream.

    Move cursor relative to it's current position in a given TTY stream.

    Definition Classes
    Readline
    Example:
    1. readline.moveCursor(stream, dx, dy)

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toLocaleString(): String
    Definition Classes
    Object
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def valueOf(): Any
    Definition Classes
    Object
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Readline

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped