MCPcopy Index your code
hub / github.com/codeaashu/claude-code / oscColor

Function oscColor

src/ink/terminal-querier.ts:96–101  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

94/** OSC dynamic color query (e.g. OSC 11 for bg color, OSC 10 for fg).
95 * The `?` data slot asks the terminal to reply with the current value. */
96export function oscColor(code: number): TerminalQuery<OscResponse> {
97 return {
98 request: osc(code, '?'),
99 match: (r): r is OscResponse => r.type === 'osc' && r.code === code,
100 }
101}
102
103/** XTVERSION: request terminal name/version (CSI > 0 q).
104 * Terminal replies with DCS > | name ST (e.g. "xterm.js(5.5.0)") or ignores.

Callers

nothing calls this directly

Calls 1

oscFunction · 0.85

Tested by

no test coverage detected