ED—Erase in Display
This control function erases characters from part or all of the display. When you erase complete lines, they become single-height, single-width lines, with all visual character attributes cleared. ED works inside or outside the scrolling margins.
represents the amount of the display to erase.
|0 (default)||From the cursor through the end of the display|
|1||From the beginning of the display through the cursor|
|2||The complete display|
Use a Ps value of 2 to erase the complete display in a fast, efficient manner.