MCPcopy
hub / github.com/codeaashu/claude-code / repaint

Method repaint

src/ink/ink.tsx:807–815  ·  view source on GitHub ↗

* 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).

()

Source from the content-addressed store, hash-verified

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.

Callers 3

exitAlternateScreenMethod · 0.95
forceRedrawMethod · 0.95
setAltScreenActiveMethod · 0.95

Calls 2

emptyFrameFunction · 0.85
resetMethod · 0.65

Tested by

no test coverage detected