class Interface extends Object with StObject
- Annotations
- @JSType() @JSImport("readline", "Interface") @native()
- Source
- readlineMod.scala
- Alphabetic
- By Inheritance
- Interface
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Interface(input: ReadableStream, output: Unit, completer: Unit, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: Unit, completer: Completer, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: Unit, completer: AsyncCompleter, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream, completer: Unit, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream, completer: Completer, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream, completer: AsyncCompleter, terminal: Boolean)
- Attributes
- protected
- new Interface(input: ReadableStream, output: Unit, completer: Completer)
- Attributes
- protected
- new Interface(input: ReadableStream, output: Unit, completer: AsyncCompleter)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream, completer: Completer)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream, completer: AsyncCompleter)
- Attributes
- protected
- new Interface(input: ReadableStream, output: WritableStream)
- Attributes
- protected
- new Interface(options: ReadLineOptions)
NOTE: According to the documentation:
NOTE: According to the documentation:
> Instances of the
readline.Interfaceclass 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
- new Interface(input: ReadableStream)
NOTE: According to the documentation:
NOTE: According to the documentation:
> Instances of the
readline.Interfaceclass 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
- new Interface()
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def addListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_close(event: close, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- def addListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("addListener")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def close(): Unit
- val cursor: Double
The current cursor position in the input line
- def emit(event: Symbol, args: Any*): Boolean
- def emit(event: java.lang.String, args: Any*): Boolean
- def emit_SIGCONT(event: SIGCONT): Boolean
- Annotations
- @JSName("emit")
- def emit_SIGINT(event: SIGINT): Boolean
- Annotations
- @JSName("emit")
- def emit_SIGTSTP(event: SIGTSTP): Boolean
- Annotations
- @JSName("emit")
- def emit_close(event: close): Boolean
- Annotations
- @JSName("emit")
- def emit_history(event: history, history: Array[java.lang.String]): Boolean
- Annotations
- @JSName("emit")
- def emit_line(event: line, input: java.lang.String): Boolean
- Annotations
- @JSName("emit")
- def emit_pause(event: pause): Boolean
- Annotations
- @JSName("emit")
- def emit_resume(event: resume): Boolean
- Annotations
- @JSName("emit")
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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.
- def getPrompt(): java.lang.String
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val line: java.lang.String
The current input data
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def on(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
- def on_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_close(event: close, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_pause(event: pause, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def on_resume(event: resume, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("on")
- def once(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
- def once_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_close(event: close, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_pause(event: pause, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def once_resume(event: resume, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("once")
- def pause(): Interface.this.type
- def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
- def prependListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_close(event: close, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependListener")
- def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Interface.this.type
- def prependOnceListener_SIGCONT(event: SIGCONT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_SIGINT(event: SIGINT, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_SIGTSTP(event: SIGTSTP, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_close(event: close, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_history(event: history, listener: Function1[Array[java.lang.String], Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_line(event: line, listener: Function1[java.lang.String, Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_pause(event: pause, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_resume(event: resume, listener: Function0[Unit]): Interface.this.type
- Annotations
- @JSName("prependOnceListener")
- def prompt(preserveCursor: Boolean): Unit
- def prompt(): Unit
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def question(query: java.lang.String, options: Abortable, callback: Function1[java.lang.String, Unit]): Unit
- def question(query: java.lang.String, callback: Function1[java.lang.String, Unit]): Unit
- def resume(): Interface.this.type
- def setPrompt(prompt: java.lang.String): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val terminal: Boolean
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def write(data: java.lang.String, key: Key): Unit
- def write(data: java.lang.String): Unit
- def write(data: Buffer, key: Key): Unit
- def write(data: Buffer): Unit
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated