Terminal Guide

Erase Line Right

ESC1B[5B 030 K4b
urxvt
xterm
vte
konsole
linuxvc

Erase the right side of the line where the cursor is currently placed starting from (including) the current cursor position, by replacing all cells with spaces.

In it's basic variant it will erase protected cells only when the semantics of select character protection attribute are active. When called as selective erase line [dispatch] it will not erase protected cells in either protection semantics.

If the erase splits a multi cell character that character is erased by replacing it with spaces, keeping its current attributes.

The erased space is colored according to the current SGR state.

Does not change the cursor position.

This unsets the pending wrap state without wrapping.

Margins from left and right margin do not apply for this sequence.

urxvt ( ✓ )

🛆 Does not erase split multi cell characters.

xterm ( ✓ )

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

vte ( ✓ )

🛆 When the pending wrap state is set, vte does not clear anything nor reset the pending wrap state. So this is effectively erase line right unless pending wrap. 🛈 See https://bugzilla.gnome.org/show_bug.cgi?id=740789 for background.

konsole ( ✓ )

🛆 Does not erase split multi cell characters. 🛆 When the pending wrap state is set, konsole does not clear anything nor reset the pending wrap state. So this is effectively erase line right unless pending wrap.

linuxvc ( ✓ )

🛆 Does not erase split multi cell characters. (linuxvc uses 2 replacement characters for multi cell characters)