Terminal Guide

Report Common Attributes of Rectangular Area

ESC1B[5B top ;3b left ;3b bottom ;3b right #23 |7c
xterm
top = 1
left = 1
bottom = see description
right = see description

Report attributes common to all cells in a rectangular area.

If cursor origin mode is set the rectangle is interpreted relative to the top left of the current scroll region. Otherwise it's relative to the top left of the terminal.

bottomrow and rightcolumn default to their bottom-most/right-most valid values.

If cursor origin mode is set and the rectangle exceeds the current scroll region it's clipped to the current scroll region. Otherwise the rectangle is clipped to the full terminal.

If toprow > bottomrow or leftcolumn > rightcolumn this sequence will send a report with empty cmds.

The terminal replies with

ESC1b [5b 030 ;3b cmds m6d 

Where cmds is a ;3b  separated list of SGR attributes set on all cells in the rectangular area.

xterm ( ✔ )

🛈 The blink attribute is normalized to cmd = 5 even if originally set with alias: blink. 🛈 Direct colors are output like this 333 838 :3a 232 :3a :3a 232 535 535 :3a 232 535 535 :3a 232 535 535 . 🛈 256 colors are output like this 333 838 :3a 535 :3a 131 232 333 . 🛈 Named colors (including bright variants) and their palette colors index equivalent are reported (and compared) as named colors.