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

Method setAltScreenActive

src/ink/ink.tsx:861–870  ·  view source on GitHub ↗

* Called by the component on mount/unmount. * Controls cursor.y clamping in the renderer and gates alt-screen-aware * behavior in SIGCONT/resize/unmount handlers. Repaints on change so * the first alt-screen frame (and first main-screen frame on exit) is * a full redraw

(active: boolean, mouseTracking = false)

Source from the content-addressed store, hash-verified

859 * a full redraw with no stale diff state.
860 */
861 setAltScreenActive(active: boolean, mouseTracking = false): void {
862 if (this.altScreenActive === active) return;
863 this.altScreenActive = active;
864 this.altScreenMouseTracking = active && mouseTracking;
865 if (active) {
866 this.resetFramesForAltScreen();
867 } else {
868 this.repaint();
869 }
870 }
871 get isAltScreenActive(): boolean {
872 return this.altScreenActive;
873 }

Callers 1

AlternateScreenFunction · 0.80

Calls 2

repaintMethod · 0.95

Tested by

no test coverage detected