MCPcopy Index your code
hub / github.com/codeaashu/claude-code / showShell

Method showShell

src/utils/terminalPanel.ts:154–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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.65

Tested by

no test coverage detected