(code: number)
| 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. */ |
| 96 | export 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. |