KetraTerm
API · DevelopmentAll versions

setWindowSizePixels

abstract fun setWindowSizePixels(width: Int, height: Int)

Updates the recorded text-area size in pixels, excluding host padding. A changed size emits a subscribed mode 2048 report when permitted. Use the pixel-aware TerminalBuffer.resize overload when both grid and pixel dimensions change so one report describes the completed resize. If either dimension is nonpositive, both are recorded as unknown zero.

Parameters

width

Width in pixels.

height

Height in pixels.