Smith::UI::Block
Inherits Reference < Object
Blocks are what the TUI draws: every event becomes one, and the renderer decides which are already on screen (flushed) and which are still live.
lines must be free of IO — blocks are mutated by the turn fiber and read
by the draw fiber, and the only thing keeping that safe is that neither
side yields mid-operation.
Instance methods
finalized?
Whether the block has stopped changing, and can therefore be printed into the scrollback once and never redrawn. Most blocks arrive finished; the streaming ones say when they are done.
lines(width : Int32) : Array(StyledLine)
Source