MCPcopy Create free account
hub / github.com/Noumena-Network/code / reenterAltScreen

Method reenterAltScreen

src/ink/ink.tsx:1109–1116  ·  view source on GitHub ↗

* Re-enter alt-screen, home the cursor, re-enable mouse tracking, and * queue a full repaint for the next frame. 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 * stays true. EN

()

Source from the content-addressed store, hash-verified

1107 * stays true. ENTER_ALT_SCREEN is a terminal-side no-op if already in alt.
1108 */
1109 private reenterAltScreen(): void {
1110 const recoveryMode = getAltScreenRecoveryRepaintMode(
1111 SYNC_OUTPUT_SUPPORTED,
1112 );
1113 this.options.stdout.write(ENTER_ALT_SCREEN + CURSOR_HOME + (this.altScreenMouseTracking ? ENABLE_MOUSE_TRACKING : ''));
1114 this.resetFramesForAltScreen();
1115 this.altScreenPendingRepaintMode = recoveryMode;
1116 }
1117
1118 /**
1119 * Seed prev/back frames with full-size BLANK screens (rows×cols of empty

Callers 2

InkClass · 0.95
exitAlternateScreenMethod · 0.95

Calls 3

writeMethod · 0.45

Tested by

no test coverage detected