KetraTerm
API · v0.2.2All versions

preferredGridSize

fun preferredGridSize(columns: Int, rows: Int): Dimension

Returns the component size in pixels for a primary-screen grid.

Must be called on the EDT because it reads the current settings and font metrics. The calculation includes primary-screen chrome even when the alternate screen is active.

Return

a new caller-owned dimension containing pixel width and height.

Parameters

columns

requested number of terminal columns.

rows

requested number of terminal rows.