ERASE

The ERASE procedure erases the screen of the currently selected graphics device (or starts a new page if the device is a printer). The device is reset to alphanumeric mode if it has such a mode (e.g., Tektronix terminals).

Calling Sequence

ERASE [, Background_Color]

Arguments

Background_Color

The color index for the screen to be erased to. If this argument is omitted ERASE resets the screen to the default background color (normally 0), stored in the system variable !P.BACKGROUND. Providing a value for Background_Color overrides the default.

Warning: Not all devices support this feature.

Keywords

CHANNEL

The channel or channel mask for the erase operation. This parameter has meaning only when used with devices that support true-color or multiple-display channels. The default value is !P.CHANNEL.

COLOR

Specifies the background color. Using this keyword is analogous to using the Background_Color argument.

Example

TV, DIST(255) ; Display a simple image in the current window.

ERASE ; Erase the image from the window.

See Also

SET_PLOT , WINDOW , WSET