Terminal Guide

Selective erase rectangular area (DECSERA)

ESC1B[5B toprow ;3b leftcolumn ;3b bottomrow ;3b rightcolumn $24 {7b
xterm
toprow = 0
leftcolumn = 0
bottomrow = see description
rightcolumn = see description

Clears all non protected cells in a rectangular area with the space character.

This sequence only considers cells protected when in select character protection attribute semantics.

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 does nothing.

The attributes of the cleared cells are not changed.

If filling the cells splits a multi cell character that character cleared, by replacing it by spaces, keeping its current attributes.

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.