DECSTBM—Set Top and Bottom Margins
This control function sets the top and bottom margins for the current page. You cannot perform scrolling outside the margins.
Default: Margins are at the page limits.
Format
CSI 9/11 |
Pt 3/n |
; 3/11 |
Pb 3/n |
r 7/2 |
Parameters
Pt
is the line number for the top margin.
Default: Pt = 1.
Pb
is the line number for the bottom margin.
Default: Pb = current number of lines per screen.
Notes on DECSTBM
- The value of the top margin (Pt) must be less than the bottom margin (Pb).
- The maximum size of the scrolling region is the page size.
- DECSTBM moves the cursor to column 1, line 1 of the page.