Cell

data class Cell(var char: Char = ' ', var style: CharacterStyle = CharacterStyle.DEFAULT, var isPlaceholder: Boolean = false)

Represents a single character block on the terminal grid.

Constructors

Link copied to clipboard
constructor(char: Char = ' ', style: CharacterStyle = CharacterStyle.DEFAULT, isPlaceholder: Boolean = false)

Properties

Link copied to clipboard
var char: Char

The character currently occupying this cell.

Link copied to clipboard

True if this cell is the empty right-half of a wide character.

Link copied to clipboard

The visual attributes applied to this character.

Functions

Link copied to clipboard
fun copyFrom(other: Cell)

Copies the character and style data from another cell into this one. Useful for shifting operations without allocating new objects.

Link copied to clipboard
fun reset()

Resets the cell to an empty space with the default style.