MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / isSshInteractive

Function isSshInteractive

frontend/app/view/term/shellblocking.ts:69–73  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

67}
68
69function isSshInteractive(args: string[]): boolean {
70 const hasForcedTty = args.includes("-t") || args.includes("-tt");
71 const hasRemoteCmd = args.some((a) => !a.startsWith("-") && a.includes(" "));
72 return hasForcedTty || !hasRemoteCmd;
73}
74
75export function getBlockingCommand(lastCommand: string | null, inAltBuffer: boolean): string | null {
76 if (!lastCommand) return null;

Callers 1

getBlockingCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected