TerminalRenderCursor

data class TerminalRenderCursor(val column: Int, val row: Int, val visible: Boolean, val blinking: Boolean, val shape: TerminalRenderCursorShape, val generation: Long)

Stable public cursor overlay model for renderers.

The terminal exposes whether blinking mode is enabled, but not the current blink phase. UI modules own blink timers and repaint cadence. Allocation-sensitive frame consumers should prefer TerminalRenderFrame.copyCursor and copy primitive cursor fields directly.

Constructors

Link copied to clipboard
constructor(column: Int, row: Int, visible: Boolean, blinking: Boolean, shape: TerminalRenderCursorShape, generation: Long)

Properties

Link copied to clipboard

whether cursor blinking mode is enabled.

Link copied to clipboard
val column: Int

zero-based visual cursor column.

Link copied to clipboard

generation that changes when position, visibility, blinking mode, or shape changes.

Link copied to clipboard
val row: Int

zero-based visual cursor row.

Link copied to clipboard

renderer-facing cursor shape.

Link copied to clipboard

whether the cursor should be rendered.