MCPcopy Index your code
hub / github.com/nodejs/node / close

Method close

lib/internal/readline/interface.js:548–556  ·  view source on GitHub ↗

* Closes the `readline.Interface` instance. * @returns {void}

()

Source from the content-addressed store, hash-verified

546 * @returns {void}
547 */
548 close() {
549 if (this.closed) return;
550 this.pause();
551 if (this.terminal) {
552 this[kSetRawMode](false);
553 }
554 this.closed = true;
555 this.emit('close');
556 }
557
558 /**
559 * Pauses the `input` stream.

Callers 2

runTestFileFunction · 0.95
[kTtyWrite]Method · 0.95

Calls 2

pauseMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected