GESCAPE Statement

 
The GESCAPE statement exchanges device-specific information with a graphic device. It is specified as follows:
 
GESCAPE device-selector, code [,param(*)][;return(*)]
 
The device selector specifies the graphic device. The code value specifies the type of operation. The param array sends information to the device and the return array receives information from the device. The type, size, and shape of the arrays must be appropriate for the requested operation.
 
Code
Description
1
returns number of color map entries
2
returns color map values
3
returns hard-clip values
4
sets normal drawing mode
5
sets alternate drawing mode
6
returns graphic display mask
7
sets graphic display mask
102
returns the current VIEWPORT and WINDOW
103
returns the current PEN and AREA PEN assignments
104
sets PLOTTER device specific variables
105
sets GRAPHICS INPUT device specific variables
106
sets DUMP device specific variables