eraseRectangle

abstract fun eraseRectangle(top: Int, left: Int, bottom: Int, right: Int, selective: Boolean)

Erases a VT400 rectangular area (DECERA / DECSERA).

Coordinates use DEC's one-based inclusive form. Zero values denote omitted parameters and resolve to the corresponding active-viewport edge. When origin mode is enabled, coordinates are relative to the active scrolling margins. Selective erasure preserves protected cells.

Parameters

top

One-based top row, or 0 when omitted.

left

One-based left column, or 0 when omitted.

bottom

One-based bottom row, or 0 when omitted.

right

One-based right column, or 0 when omitted.

selective

true for DECSERA, false for DECERA.