setScrollRegion

abstract fun setScrollRegion(top: Int, bottom: Int)

Sets the active vertical scroll region (DECSTBM, CSI top ; bottom r).

top and bottom are 1-based inclusive row numbers per the DECSTBM convention. Both are clamped to viewport bounds; degenerate ranges are ignored. Homes the cursor per the current DECOM state and active horizontal-margin mode.

Parameters

top

First row of the scroll region (1-based, inclusive).

bottom

Last row of the scroll region (1-based, inclusive).