MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / sendInterrupt

Function sendInterrupt

dev/local/tmux.ts:184–188  ·  view source on GitHub ↗
(sessionName: string, windowTarget: string | number, pane?: number)

Source from the content-addressed store, hash-verified

182 startupCommand: string,
183 shell = process.env.SHELL || '/bin/sh',
184 cwd?: string
185): string {
186 const interactiveCommand = `${startupCommand}; exec ${escapeForShell(shell)} -l`;
187 const command = `${escapeForShell(shell)} -lc ${escapeForShell(interactiveCommand)}`;
188 if (cwd === undefined) return command;
189 return `${escapeForShell('/bin/sh')} -c ${escapeForShell(
190 `cd ${escapeForShell(cwd)} && exec ${command}`
191 )}`;

Callers 2

stopServiceInTmuxFunction · 0.90
restartServiceInTmuxFunction · 0.90

Calls 1

paneTargetFunction · 0.85

Tested by

no test coverage detected