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

Method reenterAltScreen

src/ink/ink.tsx:964–967  ·  view source on GitHub ↗

* Re-enter alt-screen, clear, home, re-enable mouse tracking, and reset * frame buffers so the next render repaints from scratch. Self-heal for * SIGCONT, resize, and stdin-gap/event-loop-stall (sleep/wake) — any of * which can leave the terminal in main-screen mode while altScreenActive

()

Source from the content-addressed store, hash-verified

962 * stays true. ENTER_ALT_SCREEN is a terminal-side no-op if already in alt.
963 */
964 private reenterAltScreen(): void {
965 this.options.stdout.write(ENTER_ALT_SCREEN + ERASE_SCREEN + CURSOR_HOME + (this.altScreenMouseTracking ? ENABLE_MOUSE_TRACKING : ''));
966 this.resetFramesForAltScreen();
967 }
968
969 /**
970 * Seed prev/back frames with full-size BLANK screens (rows×cols of empty

Callers 1

InkClass · 0.95

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected