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

Method checkTmux

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

Source from the content-addressed store, hash-verified

60 // ── tmux helpers ──────────────────────────────────────────────────
61
62 private checkTmux(): boolean {
63 if (this.hasTmux !== undefined) return this.hasTmux
64 const result = spawnSync('tmux', ['-V'], { encoding: 'utf-8' })
65 this.hasTmux = result.status === 0
66 if (!this.hasTmux) {
67 logForDebugging(
68 'Terminal panel: tmux not found, falling back to non-persistent shell',
69 )
70 }
71 return this.hasTmux
72 }
73
74 private hasSession(): boolean {
75 const result = spawnSync(

Callers 1

showShellMethod · 0.95

Calls 1

logForDebuggingFunction · 0.85

Tested by

no test coverage detected