()
| 185 | } |
| 186 | } |
| 187 | override componentWillUnmount() { |
| 188 | if (this.props.stdout.isTTY) { |
| 189 | this.props.stdout.write(SHOW_CURSOR); |
| 190 | } |
| 191 | |
| 192 | // Clear any pending timers |
| 193 | if (this.incompleteEscapeTimer) { |
| 194 | clearTimeout(this.incompleteEscapeTimer); |
| 195 | this.incompleteEscapeTimer = null; |
| 196 | } |
| 197 | if (this.pendingHyperlinkTimer) { |
| 198 | clearTimeout(this.pendingHyperlinkTimer); |
| 199 | this.pendingHyperlinkTimer = null; |
| 200 | } |
| 201 | // ignore calling setRawMode on an handle stdin it cannot be called |
| 202 | if (this.isRawModeSupported()) { |
| 203 | this.handleSetRawMode(false); |
| 204 | } |
| 205 | } |
| 206 | override componentDidCatch(error: Error) { |
| 207 | this.handleExit(error); |
| 208 | } |
nothing calls this directly
no test coverage detected