VT510 Video Terminal Programmer Information

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.

Format

CSI
9/11
Ps
3/n
J
4/10

Parameters

Ps
represents the amount of the display to erase.

Ps Area Erased
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

Programming Tip
Use a Ps value of 2 to erase the complete display in a fast, efficient manner.