MCPcopy
hub / github.com/codeaashu/claude-code / osc

Function osc

src/ink/termio/osc.ts:18–21  ·  view source on GitHub ↗
(...parts: (string | number)[])

Source from the content-addressed store, hash-verified

16/** Generate an OSC sequence: ESC ] p1;p2;...;pN <terminator>
17 * Uses ST terminator for Kitty (avoids beeps), BEL for others */
18export function osc(...parts: (string | number)[]): string {
19 const terminator = env.terminal === 'kitty' ? ST : BEL
20 return `${OSC_PREFIX}${parts.join(SEP)}${terminator}`
21}
22
23/**
24 * Wrap an escape sequence for terminal multiplexer passthrough.

Callers 7

oscColorFunction · 0.85
useTerminalNotificationFunction · 0.85
setClipboardFunction · 0.85
linkFunction · 0.85
osc.tsFile · 0.85
tabStatusFunction · 0.85
useTerminalTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected