()
| 104 | } |
| 105 | |
| 106 | private onOpen() { |
| 107 | this.isReady = true; |
| 108 | if (this.pendingWrites.length) { |
| 109 | for (const data of this.pendingWrites) { |
| 110 | this.write(data); |
| 111 | } |
| 112 | this.pendingWrites = []; |
| 113 | } else { |
| 114 | this.doPrompt(); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | private onClose() { |
| 119 | this.emit('close'); |
no test coverage detected