top = 1 bottom = see description Set Top and Bottom Margins
If bottom is not specified, 0 or bigger than the number of the bottom-most row, it is adjusted to the number of the bottom most row.
If top < bottom set the top and bottom row of the scroll region according to top and bottom and move the cursor to the top-left cell of the display (when in cursor origin mode is set to the top-left cell of the scroll region).
Otherwise: Set the top and bottom row of the scroll region to the top-most and bottom-most line of the screen.
🛆 top == bottom sets the scroll region to the whole screen.
🛆 If bottom is 0, it is not adjusted to the number of the bottom most row.
🛆 If bottom is bigger than the number of the bottom-most row, the sequence is ignored.
🛆 If bottom is bigger than the number of the bottom-most row, the sequence is ignored.