* 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
()
| 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 |
no test coverage detected