MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / queryTerminalOSC

Function queryTerminalOSC

cli/src/utils/terminal-color-detection.ts:242–248  ·  view source on GitHub ↗
(
  oscCode: number,
)

Source from the content-addressed store, hash-verified

240 * Query terminal for OSC color
241 */
242export async function queryTerminalOSC(
243 oscCode: number,
244): Promise<string | null> {
245 const ttyPath = process.platform === 'win32' ? 'CON' : '/dev/tty'
246 const query = buildOscQuery(oscCode)
247 return sendOscQuery(ttyPath, query)
248}
249
250/**
251 * Parse RGB values from OSC response

Callers 1

detectTerminalThemeCoreFunction · 0.85

Calls 2

buildOscQueryFunction · 0.85
sendOscQueryFunction · 0.85

Tested by

no test coverage detected