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