Packages

class Interface extends Object with StObject

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

Instance Constructors

  1. new Interface(input: ReadableStream, output: Unit, completer: Unit, terminal: Boolean)
    Attributes
    protected
  2. new Interface(input: ReadableStream, output: Unit, completer: Completer, terminal: Boolean)
    Attributes
    protected
  3. new Interface(input: ReadableStream, output: Unit, completer: AsyncCompleter, terminal: Boolean)
    Attributes
    protected
  4. new Interface(input: ReadableStream, output: WritableStream, completer: Unit, terminal: Boolean)
    Attributes
    protected
  5. new Interface(input: ReadableStream, output: WritableStream, completer: Completer, terminal: Boolean)
    Attributes
    protected
  6. new Interface(input: ReadableStream, output: WritableStream, completer: AsyncCompleter, terminal: Boolean)
    Attributes
    protected
  7. new Interface(input: ReadableStream, output: Unit, completer: Completer)
    Attributes
    protected
  8. new Interface(input: ReadableStream, output: Unit, completer: AsyncCompleter)
    Attributes
    protected
  9. new Interface(input: ReadableStream, output: WritableStream, completer: Completer)
    Attributes
    protected
  10. new Interface(input: ReadableStream, output: WritableStream, completer: AsyncCompleter)
    Attributes
    protected
  11. new Interface(input: ReadableStream, output: WritableStream)
    Attributes
    protected
  12. new Interface(options: ReadLineOptions)

    NOTE: According to the documentation:

    NOTE: According to the documentation:

    > Instances of the readline.Interface class are constructed using the > readline.createInterface() method.

    Attributes
    protected
    See also

    https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface

  13. new Interface(input: ReadableStream)

    NOTE: According to the documentation:

    NOTE: According to the documentation:

    > Instances of the readline.Interface class are constructed using the > readline.createInterface() method.

    Attributes
    protected
    See also

    https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface

  14. new Interface()
    Attributes
    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. def addListener(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type

    events.EventEmitter 1.

    events.EventEmitter 1. close 2. line 3. pause 4. resume 5. SIGCONT 6. SIGINT 7. SIGTSTP 8. history

  5. def addListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  6. def addListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  7. def addListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_close(event: close, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  10. def addListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  11. def addListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  12. def addListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("addListener")
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  15. def close(): Unit
  16. val cursor: Double

    The current cursor position in the input line

  17. def emit(event: Symbol, args: Any*): Boolean
  18. def emit(event: java.lang.String, args: Any*): Boolean
  19. def emit_SIGCONT(event: SIGCONT): Boolean
    Annotations
    @JSName("emit")
  20. def emit_SIGINT(event: SIGINT): Boolean
    Annotations
    @JSName("emit")
  21. def emit_SIGTSTP(event: SIGTSTP): Boolean
    Annotations
    @JSName("emit")
  22. def emit_close(event: close): Boolean
    Annotations
    @JSName("emit")
  23. def emit_history(event: history, history: Array[java.lang.String]): Boolean
    Annotations
    @JSName("emit")
  24. def emit_line(event: line, input: java.lang.String): Boolean
    Annotations
    @JSName("emit")
  25. def emit_pause(event: pause): Boolean
    Annotations
    @JSName("emit")
  26. def emit_resume(event: resume): Boolean
    Annotations
    @JSName("emit")
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  30. def getCursorPos(): CursorPos

    Returns the real position of the cursor in relation to the input prompt + string.

    Returns the real position of the cursor in relation to the input prompt + string. Long input (wrapping) strings, as well as multiple line prompts are included in the calculations.

  31. def getPrompt(): java.lang.String
  32. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  36. val line: java.lang.String

    The current input data

  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  40. def on(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
  41. def on_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  42. def on_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  43. def on_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  44. def on_close(event: close, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  45. def on_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
    Annotations
    @JSName("on")
  46. def on_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
    Annotations
    @JSName("on")
  47. def on_pause(event: pause, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  48. def on_resume(event: resume, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("on")
  49. def once(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
  50. def once_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  51. def once_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  52. def once_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  53. def once_close(event: close, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  54. def once_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
    Annotations
    @JSName("once")
  55. def once_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
    Annotations
    @JSName("once")
  56. def once_pause(event: pause, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  57. def once_resume(event: resume, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("once")
  58. def pause(): Interface.this.type
  59. def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
  60. def prependListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  61. def prependListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  62. def prependListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  63. def prependListener_close(event: close, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  64. def prependListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  65. def prependListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  66. def prependListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  67. def prependListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependListener")
  68. def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
  69. def prependOnceListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  70. def prependOnceListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  71. def prependOnceListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  72. def prependOnceListener_close(event: close, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  73. def prependOnceListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  74. def prependOnceListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  75. def prependOnceListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  76. def prependOnceListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
    Annotations
    @JSName("prependOnceListener")
  77. def prompt(preserveCursor: Boolean): Unit
  78. def prompt(): Unit
  79. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  80. def question(query: java.lang.String, options: Abortable, callback: Function1[java.lang.String, Unit]): Unit
  81. def question(query: java.lang.String, callback: Function1[java.lang.String, Unit]): Unit
  82. def resume(): Interface.this.type
  83. def setPrompt(prompt: java.lang.String): Unit
  84. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  85. val terminal: Boolean
  86. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  87. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  88. def valueOf(): Any
    Definition Classes
    Object
  89. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  90. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  92. def write(data: java.lang.String, key: Key): Unit
  93. def write(data: java.lang.String): Unit
  94. def write(data: Buffer, key: Key): Unit
  95. def write(data: Buffer): Unit

Deprecated Value Members

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

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped