EL—Erase in Line
This control function erases characters on the line that has the cursor. EL clears all character attributes from erased character positions. EL works inside or outside the scrolling margins.
Format
CSI 9/11 |
Ps 3/n |
K 4/11 |
Parameters
Ps
represents the section of the line to erase.
Ps | Section Erased |
---|---|
0 (default) | From the cursor through the end of the line |
1 | From the beginning of the line through the cursor |
2 | The complete line |