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