struct

TermBuf::ScrollHint

Inherits Struct < Value < Object

Stability: internal

A scroll the buffer performed on itself, recorded so the painter can reach for the terminal's own scrolling instead of rediscovering the shift from row hashes. The painter still verifies a hint against those hashes before trusting it.

Constructors

new(rect : Rect, lines : Int32, serial : Int64 = 0_i64)
Source

Instance methods

lines

Rows scrolled, positive meaning content moved up.

Source
rect

The rows that moved.

Source
serial

Where this hint sits in the buffer's log of them. Sinks paint at different times, so a hint cannot be handed over and forgotten: each remembers the serial it read up to, and the log is trimmed to the oldest of those.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source