MCPcopy Index your code
hub / github.com/callstack/agent-device / fillLinux

Function fillLinux

src/platforms/linux/input-actions.ts:271–280  ·  view source on GitHub ↗
(x: number, y: number, text: string, delayMs = 0)

Source from the content-addressed store, hash-verified

269}
270
271export async function fillLinux(x: number, y: number, text: string, delayMs = 0): Promise<void> {
272 // Click to focus the field
273 await pressLinux(x, y);
274 await sleep(100);
275 // Select all existing text (Ctrl+A scancodes: Ctrl=29, A=30)
276 await sendKey('ctrl+a', ['29:1', '30:1', '30:0', '29:0']);
277 await sleep(50);
278 // Type replacement text
279 await typeLinux(text, delayMs);
280}

Callers 1

createLinuxInteractorFunction · 0.90

Calls 4

sleepFunction · 0.90
pressLinuxFunction · 0.85
sendKeyFunction · 0.85
typeLinuxFunction · 0.85

Tested by

no test coverage detected