()
| 152 | // ── show shell ──────────────────────────────────────────────────── |
| 153 | |
| 154 | private showShell(): void { |
| 155 | const inkInstance = instances.get(process.stdout) |
| 156 | if (!inkInstance) { |
| 157 | logForDebugging('Terminal panel: no Ink instance found, aborting') |
| 158 | return |
| 159 | } |
| 160 | |
| 161 | inkInstance.enterAlternateScreen() |
| 162 | try { |
| 163 | if (this.checkTmux() && this.ensureSession()) { |
| 164 | this.attachSession() |
| 165 | } else { |
| 166 | this.runShellDirect() |
| 167 | } |
| 168 | } finally { |
| 169 | inkInstance.exitAlternateScreen() |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // ── helpers ─────────────────────────────────────────────────────── |
| 174 |
no test coverage detected