Terminal Guide

Delete Column (DECDC)

ESC1B[5B amount '27 ~7e
amount = 1

Removes amount columns (over the whole height of the current scrolling region) from the current cursor column to the right. The remaining columns to the right are shifted left and space from the right margin is filled with empty cells.

If the current cursor position is outside of the current scroll region it does nothing.

If amount is greater than the remaining number of columns in the scrolling region it is adjusted down.

In left and right margin mode the margins are respected; columns are only scrolled in the scroll region.

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

All other cleared space is colored according to the current SGR state.

If amount = 0 it's adjusted to 1.

The Cursor position is not changed.

xterm ( ✓ )

🛆 As of xterm 346 split multi column cells are erased using the current SGR state instead of keeping the background color.