object Readline extends Object with Readline
Readline Singleton
- Annotations
- @native() @JSImport("readline", JSImport.Namespace)
- Alphabetic
- By Inheritance
- Readline
- 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
- Definition Classes
- Readline
- 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
- Definition Classes
- Readline
readline.clearLine(stream, dir)
Example: - def clearScreenDown(stream: IWritable): Boolean
- Definition Classes
- Readline
- 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.
- Definition Classes
- Readline
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.
- Definition Classes
- Readline
readline.createInterface(options)
Example: - def cursorTo(stream: IWritable, x: Int): Unit
- Definition Classes
- Readline
- def cursorTo(stream: IWritable, x: Int, callback: Function): Unit
- Definition Classes
- Readline
- def cursorTo(stream: IWritable, x: Int, y: Int): Unit
- Definition Classes
- Readline
- 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.
- Definition Classes
- Readline
readline.cursorTo(stream, x, y)
Example: - def emitKeypressEvents(stream: IReadable): Unit
- Definition Classes
- Readline
- def emitKeypressEvents(stream: IReadable, interface: Interface): Unit
- Definition Classes
- Readline
- 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
- Definition Classes
- Readline
- 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.
- Definition Classes
- Readline
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()