trait Readline extends Object
Readline allows of a stream (such as process.stdin) on a line-by-line basis. To use this module, do require('readline'). Note that once you've invoked this module, your Node.js program will not terminate until you've closed the interface.
- Annotations
- @JSType() @native()
- See also
https://nodejs.org/api/readline.html
- Alphabetic
- By Inheritance
- Readline
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearLine(stream: IWritable, dir: Int): Boolean
- def clearLine(stream: IWritable, dir: Int, callback: Function): 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
readline.clearLine(stream, dir)
Example: - def clearScreenDown(stream: IWritable): Boolean
- def clearScreenDown(stream: IWritable, callback: Function): Boolean
Clears the screen from the current position of the cursor down.
Clears the screen from the current position of the cursor down.
readline.clearScreenDown(stream)
Example: - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createInterface(options: ReadlineOptions): Interface
Creates a readline Interface instance.
Creates a readline Interface instance.
readline.createInterface(options)
Example: - def cursorTo(stream: IWritable, x: Int): Unit
- def cursorTo(stream: IWritable, x: Int, callback: Function): Unit
- def cursorTo(stream: IWritable, x: Int, y: Int): Unit
- def cursorTo(stream: IWritable, x: Int, y: Int, callback: Function): Unit
Move cursor to the specified position in a given TTY stream.
Move cursor to the specified position in a given TTY stream.
readline.cursorTo(stream, x, y)
Example: - def emitKeypressEvents(stream: IReadable): Unit
- def emitKeypressEvents(stream: IReadable, interface: Interface): Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def moveCursor(stream: IWritable, dx: Int, dy: Int): Unit
- def moveCursor(stream: IWritable, dx: Int, dy: Int, callback: Function): 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.
readline.moveCursor(stream, dx, dy)
Example: - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()