* Reset frame buffers so the next render writes the full screen from scratch. * Call this before resume() when the terminal content has been corrupted by * an external process (e.g. tmux, shell, full-screen TUI).
()
| 805 | * an external process (e.g. tmux, shell, full-screen TUI). |
| 806 | */ |
| 807 | repaint(): void { |
| 808 | this.frontFrame = emptyFrame(this.frontFrame.viewport.height, this.frontFrame.viewport.width, this.stylePool, this.charPool, this.hyperlinkPool); |
| 809 | this.backFrame = emptyFrame(this.backFrame.viewport.height, this.backFrame.viewport.width, this.stylePool, this.charPool, this.hyperlinkPool); |
| 810 | this.log.reset(); |
| 811 | // Physical cursor position is unknown after external terminal corruption. |
| 812 | // Clear displayCursor so the cursor preamble doesn't emit a stale |
| 813 | // relative move from where we last parked it. |
| 814 | this.displayCursor = null; |
| 815 | } |
| 816 | |
| 817 | /** |
| 818 | * Clear the physical terminal and force a full redraw. |
no test coverage detected