TerminalDimensions

data class TerminalDimensions(val rows: Int, val columns: Int, val widthPixels: Int, val heightPixels: Int)(source)

Represents the terminal's character grid and physical viewport.

Pixel dimensions are populated by the Compose Terminal. Headless users get dimensions based on the cell size supplied to TerminalEmulator.setCellPixelSize.

Constructors

Link copied to clipboard
constructor(rows: Int, columns: Int, widthPixels: Int, heightPixels: Int)
constructor(rows: Int, columns: Int)

Retained for source and binary compatibility with character-only callers.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rows: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(rows: Int, columns: Int): TerminalDimensions

Retained for binary compatibility with the original two-field data class.