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

Function getDimensions

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

Source from the content-addressed store, hash-verified

1405}
1406
1407async function getDimensions(): Promise<any> {
1408 const dim: IRenderDimensions = await ctx.page.evaluate(`term._core._renderService.dimensions`);
1409 return {
1410 cellWidth: dim.css.cell.width.toFixed(0),
1411 cellHeight: dim.css.cell.height.toFixed(0),
1412 width: dim.css.canvas.width.toFixed(0),
1413 height: dim.css.canvas.height.toFixed(0)
1414 };
1415}

Callers 1

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected