MCPcopy Create free account
hub / github.com/continuedev/continue / detectTerminalType

Function detectTerminalType

extensions/cli/src/telemetry/headerUtils.ts:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export function detectTerminalType(): string | undefined {
16 if (process.env.TERM_PROGRAM) {
17 return process.env.TERM_PROGRAM;
18 }
19 if (process.env.VSCODE_PID) {
20 return "vscode";
21 }
22 if (process.env.TMUX) {
23 return "tmux";
24 }
25 return undefined;
26}

Callers 1

getStandardAttributesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected