MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / showShell

Method showShell

source code/utils/terminalPanel.ts:156–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

toggleMethod · 0.95

Calls 8

checkTmuxMethod · 0.95
ensureSessionMethod · 0.95
attachSessionMethod · 0.95
runShellDirectMethod · 0.95
logForDebuggingFunction · 0.85
enterAlternateScreenMethod · 0.80
exitAlternateScreenMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected