Terminal Guide

Change Attributes in Area (DECCARA)

ESC1B[5B toprow ;3b leftcolumn ;3b bottomrow ;3b rightcolumn ;3b [ attribute ]1+ $24 r72
toprow = 0
leftcolumn = 0
bottomrow = see description
rightcolumn = see description
repeated (one or more times):

Change given attributes for each cell of the specified area.

If cursor origin mode is set the points are 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 bottom-right point exceeds the current scroll region it's clipped to the current scroll region. Otherwise the point is clipped to be within the full terminal.

If toprow > bottomrow or leftcolumn > rightcolumn this sequence does nothing.

If select attribute change extent is set to rectangle (non default) the two points are interpreted as a rectangle. Otherwise:

For each cell in the specified area and each value of cmd the attribute is changed corresponding to:

0clear all attributes
1set bold
4set underline
5set blink
7set inverse
8set invisible
22remove bold
24remove underline
25remove blink
27remove inverse
28remove invisible

When only some of the lines have set set double width line, the region this sequence acts upon might not look rectangular in to the user on display.