Termify::ScrollRegion
Confines output to a fixed-height region of the terminal, so that streaming text scrolls within it while the rest of the screen stays put.
Constructors
Height is clamped to the useful range; below three the region cannot show movement, and above ten it stops reading as a subordinate area.
Instance methods
lines
Sourcestart
Setup the scroll region and place the cursor at top row within it. All subsequent output will scroll within the region.
stop(top = false)
Stop using the scroll region, undo the scroll constraint, and
place the cursor at the top or after the bottom of the region
based on top parameter which defaults to false for bottom.
term
Source