Documentation
¶
Overview ¶
Package scroll computes the visible line window for a cursor-navigable list rendered inside a fixed-height terminal viewport, so a namespace scan or cross-repo list that outgrows the screen scrolls instead of clipping silently or pushing the footer off-screen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Window ¶
Window returns the [start, end) line range to render out of total lines, keeping cursorLine inside the window. Visible is the number of lines available for the list body; a total that fits within visible returns the full range unchanged. A non-positive visible or total returns [0, total).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.