Terminal Guide

Query Current Top and Bottom Margins

ESC1B P50 $24 q71 r72 ESC1B \5C
xterm
✔
vte
✓

Query current top and bottom scrolling margins.

This queries the state set via set top and bottom margins.

The terminal replies with ESC1b P50 131 $24 r72 Ⓝtop ;3b Ⓝbottom r72 ESC1b \5c .

Where top and bottom represent the current top-most and bottom-most line of the scrolling region.

vte ( ✓ )

🛆 Replies with ESC1b P50 131 $24 r72 r72 ESC1b \5c  when scrolling region is the whole screen.