()
| 1539 | return this.exitPromise; |
| 1540 | } |
| 1541 | resetLineCount(): void { |
| 1542 | if (this.options.stdout.isTTY) { |
| 1543 | // Swap so old front becomes back (for screen reuse), then reset front |
| 1544 | this.backFrame = this.frontFrame; |
| 1545 | this.frontFrame = emptyFrame(this.frontFrame.viewport.height, this.frontFrame.viewport.width, this.stylePool, this.charPool, this.hyperlinkPool); |
| 1546 | this.log.reset(); |
| 1547 | // frontFrame is reset, so frame.cursor on the next render is (0,0). |
| 1548 | // Clear displayCursor so the preamble doesn't compute a stale delta. |
| 1549 | this.displayCursor = null; |
| 1550 | } |
| 1551 | } |
| 1552 | |
| 1553 | /** |
| 1554 | * Replace char/hyperlink pools with fresh instances to prevent unbounded |
nothing calls this directly
no test coverage detected