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

Function cursorPosition

src/ink/terminal-querier.ts:87–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.). */
87export 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. */

Callers

nothing calls this directly

Calls 1

csiFunction · 0.85

Tested by

no test coverage detected