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

Function getCursor

test/playwright/InputHandler.test.ts:1399–1405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1397}
1398
1399async function getCursor(): Promise<{ col: number, row: number }> {
1400 return ctx.page.evaluate(`
1401 (function() {
1402 return {col: term.buffer.active.cursorX, row: term.buffer.active.cursorY};
1403 })();
1404 `);
1405}
1406
1407async function getDimensions(): Promise<any> {
1408 const dim: IRenderDimensions = await ctx.page.evaluate(`term._core._renderService.dimensions`);

Callers 1

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected