Skip to main content

on

method Interface.prototype.on
Jump to headingInterface.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "line",
listener: (input: string) => void,
): this

Parameters Jump to heading

Jump to headingevent: "line"
Jump to headinglistener: (input: string) => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "pause",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "pause"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "resume",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "resume"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "SIGCONT",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGCONT"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "SIGINT",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGINT"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "SIGTSTP",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGTSTP"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingInterface.prototype.on(
event: "history",
listener: (history: string[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: "history"
Jump to headinglistener: (history: string[]) => void

Return Type Jump to heading

this
Back to top