* Closes the `readline.Interface` instance. * @returns {void}
()
| 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. |
no test coverage detected