amount cells to the right starting from (including) the current cursor position, by replacing all cells with spaces.
amount is 0, adjust it to 1.
If the erase splits a multi cell character that character is erased by replacing it with spaces, keeping its current attributes.
This unsets the pending wrap state without wrapping.
The erased space is colored according to the current SGR state.
Does not change the cursor position.
🛆 If pending wrap state is set, wraps and indexes.
amount is 0, does not adjust it to 1.
🛆 cells belonging to split multi-cell characters are erased with the SGR state of the first cell of that character.
🛈 The value of
amount is limited to 65535.
🛆 does not unset pending wrap state. 🛈 TODO investigate how splitting multi cell characters works here in detail.
🛆 Does not erase split multi cell characters. (linuxvc uses 2 replacement characters for multi cell characters)