()
| 85 | * the plain DSR form (CSI 6 n → CSI row;col R) is ambiguous with |
| 86 | * modified F3 keys (Shift+F3 = CSI 1;2 R, etc.). */ |
| 87 | export function cursorPosition(): TerminalQuery<CursorPosResponse> { |
| 88 | return { |
| 89 | request: csi('?6n'), |
| 90 | match: (r): r is CursorPosResponse => r.type === 'cursorPosition', |
| 91 | } |
| 92 | } |
| 93 | |
| 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. */ |