Terminal Guide

Delete Line (DL)

ESC1B[5B amount M4d
urxvt
xterm
vte
konsole
linuxvc
amount = 1

Removes amount lines from the current cursor row down. The remaining lines to the bottom margin are shifted up and space from the bottom margin up is filled with empty lines.

This unsets the pending wrap state without wrapping.

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

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

In left and right margin mode the margins are respected; lines 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.

Moves the cursor to the left margin.

urxvt ( ✓ )

🛆 if the cursor is above the current scroll region it acts as if the top of the scrolling region was set to the top-most row of the screen. 🛆 If amount is greater than the remaining number of lines in the scrolling region it does nothing. 🛆 If pending wrap state is set, wraps and indexes. 🛆 Does not move the cursor to the left margin (unless pending wrap was set)

xterm ( ✓ )

🛆 If amount = 0 it's adjusted to 1.

vte ( ✓ )

🛆 vte ignores the top margin of the scrolling region.

konsole ( ✓ )

🛆 Does not unset pending wrap state. 🛆 konsole ignores the top margin of the scrolling region. 🛆 does not move the cursor to the left margin

linuxvc ( ✓ )

🛆 When the cursor is on the bottom-most line of the current scrolling region, it does not scroll/erase that line. 🛆 if the cursor is above the current scrolling region: scrolls remaining lines until bottom most line of scroll region. 🛆 Does not move the cursor to the left margin. 🛆 amount = 0 is adjusted to 1.