Skip to content

DL — Delete Lines

SequenceCSI <n> M
Bytes0x1B 0x5B <n> 0x4D
MnemonicDL
Otty support

Description

Deletes <n> rows starting at the cursor, scrolling subsequent rows up within the active region. New blank rows appear at the bottom.

Default <n> = 1. Effective only inside the scrolling region.

Example

bash
printf '\e[3;1H\e[2M'     # at row 3 col 1, delete 2 rows

Otty