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

Function osc

packages/@ant/ink/src/core/termio/osc.ts:44–47  ·  view source on GitHub ↗
(...parts: (string | number)[])

Source from the content-addressed store, hash-verified

42/** Generate an OSC sequence: ESC ] p1;p2;...;pN <terminator>
43 * Uses ST terminator for Kitty (avoids beeps), BEL for others */
44export function osc(...parts: (string | number)[]): string {
45 const terminator = process.env.TERM_PROGRAM === 'kitty' ? ST : BEL
46 return `${OSC_PREFIX}${parts.join(SEP)}${terminator}`
47}
48
49/**
50 * Wrap an escape sequence for terminal multiplexer passthrough.

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected