MCPcopy
hub / github.com/xtermjs/xterm.js / focus

Method focus

test/playwright/TestUtils.ts:245–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 public async reset(): Promise<void> { return this.evaluate(([term]) => term.reset()); }
244 public async clear(): Promise<void> { return this.evaluate(([term]) => term.clear()); }
245 public async focus(): Promise<void> { return this.evaluate(([term]) => term.focus()); }
246 public async blur(): Promise<void> { return this.evaluate(([term]) => term.blur()); }
247 public async hasSelection(): Promise<boolean> { return this.evaluate(([term]) => term.hasSelection()); }
248 public async getSelection(): Promise<string> { return this.evaluate(([term]) => term.getSelection()); }

Callers 3

setupTestsFunction · 0.45
Terminal.test.tsFile · 0.45

Calls 1

evaluateMethod · 0.95

Tested by

no test coverage detected