Phosphor::Frame
Represents a rectangular region of the terminal.
All rendering is frame-relative: widgets write cells at
frame.x + local_col, frame.y + local_row. The Buffer translates those
into absolute terminal coordinates when emitting ANSI moves. In fullscreen
mode the root frame's origin is (0, 0); in inline mode it's wherever the
cursor was when the app started. Widgets, View, and Screen never know
which mode is in use.
Constructors
Instance methods
height
SourceReturns a new Frame shrunk by n cells on each edge.
BorderMock uses this to hand the inner region to its child widget:
the mock draws border cells around the frame's perimeter, then calls
child.render(frame.inset(1), buf).
origin_col
Sourceorigin_row
Sourcewidth
Source