MCPcopy Index your code
hub / github.com/codeaashu/claude-code / resetLineCount

Method resetLineCount

src/ink/ink.tsx:1541–1551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

emptyFrameFunction · 0.85
resetMethod · 0.65

Tested by

no test coverage detected