KetraTerm
API · DevelopmentAll versions

resizeSessionToVisibleGrid

fun resizeSessionToVisibleGrid(onComplete: (Throwable?) -> Unit = mutationFailureHandler)

Schedules the current visible cell and pixel dimensions for the bound session.

Call on the EDT after laying out the component. This also reconciles an externally resized grid even when the component bounds did not change. Geometry admission shares the ordered settings worker; newer geometry may supersede this request. onComplete runs on the EDT after installation.

Parameters

onComplete

receives null on completion or an operational failure; superseded, unbound, closed, or disposed requests report CancellationException.

Throws

if called off the EDT or the bounded queue is full.