Class

io.scalajs.nodejs.readline.Interface

ReadlineEvents

Related Doc: package Interface

Permalink

implicit final class ReadlineEvents extends AnyVal

Readline Interface Events

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadlineEvents
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReadlineEvents(readline: Interface)

    Permalink

    readline

    the given Readline Interface

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def onClose(callback: () ⇒ Any): Interface

    Permalink

    Emitted when close() is called.

    Emitted when close() is called. Also emitted when the input stream receives its 'end' event. The Interface instance should be considered "finished" once this is emitted. For example, when the input stream receives

    ^D

    , respectively known as EOT.

    ^D }}}

    Annotations
    @inline()
  8. def onLine(callback: (String) ⇒ Any): Interface

    Permalink

    Emitted whenever the input stream receives an end of line (\n, \r, or \r\n), usually received when the user hits enter, or return.

    Emitted whenever the input stream receives an end of line (\n, \r, or \r\n), usually received when the user hits enter, or return. This is a good hook to listen for user input.

    Annotations
    @inline()
  9. def onPause(callback: Function): Interface

    Permalink

    Emitted whenever the input stream is paused.

    Emitted whenever the input stream is paused. Also emitted whenever the input stream is not paused and receives the SIGCONT event. (See events SIGTSTP and SIGCONT)

    Annotations
    @inline()
  10. def onResume(callback: Function): Interface

    Permalink

    Emitted whenever the input stream is resumed.

    Emitted whenever the input stream is resumed.

    Annotations
    @inline()
  11. def onSIGCONT(callback: Function): Interface

    Permalink

    Emitted whenever the input stream is sent to the background with

    Emitted whenever the input stream is sent to the background with

    ^Z

    , respectively known as SIGTSTP, and then continued with fg(1). This event only emits if the stream was not paused before sending the program to the background.

    ^Z }}} and then continued with fg(1). This event only emits if the stream was not paused before sending the program to the background.

    Annotations
    @inline()
  12. def onSIGINT(callback: Function): Interface

    Permalink

    Emitted whenever the input stream receives a

    Emitted whenever the input stream receives a

    ^C

    , respectively known as SIGINT. If there is no SIGINT event listener present when the input stream receives a SIGINT, pause will be triggered.

    ^C }}} SIGINT event listener present when the input stream receives a SIGINT, pause will be triggered.

    Annotations
    @inline()
  13. def onSIGTSTP(callback: Function): Interface

    Permalink

    Emitted whenever the input stream receives a

    Emitted whenever the input stream receives a

    ^Z

    , respectively known as SIGTSTP. If there is no SIGTSTP event listener present when the input stream receives a SIGTSTP, the program will be sent to the background. When the program is resumed with fg, the 'pause' and SIGCONT events will be emitted. You can use either to resume the stream. The 'pause' and SIGCONT events will not be triggered if the stream was paused before the program was sent to the background.

    ^Z }}} SIGTSTP event listener present when the input stream receives a SIGTSTP, the program will be sent to the background. When the program is resumed with fg, the 'pause' and SIGCONT events will be emitted. You can use either to resume the stream. The 'pause' and SIGCONT events will not be triggered if the stream was paused before the program was sent to the background.

    Annotations
    @inline()
  14. val readline: Interface

    Permalink

    the given Readline Interface

  15. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped