State

interface State

Properties

Link copied to clipboard
abstract val focused: StateFlow<Boolean>

True when this terminal surface has focus, false when it does not. The default is true, and will only change if Capabilities.focusEvents is true.

Link copied to clipboard
abstract val size: StateFlow<Terminal.Size>

The size of the terminal surface in both monospace cells and, optionally, pixels. Updates to the size can be sourced from multiple locations depending on whether Capabilities.inBandResizeEvents is true and native operating system API support.

Link copied to clipboard
abstract val theme: StateFlow<Terminal.Theme>

Indicates whether the color palette ("theme") of this terminal surface is light, dark, or unknown. The default is unknown, and will only change if Capabilities.themeEvents is true.