SUMMARY OF GSX_ OPCODES
Initialise Workstation. Loads the device driver if necessary and sets
Close Workstation. Halts graphics output to this workstation.
Clear Workstation. This clears the device and is equivalent to CLS if
used on a CRT device.
Update Workstation. Display all pending graphics.
Escape. Enable device dependent operation. These deal mainly with
character output if the device has an alpha mode with addressable
character cells. Function 5 is called and an escape sequence ID is passed
to GSXY in control(6).
– Inquire addressable character cells.
– Enter graphics mode.
– Exit graphics mode.
– Alpha cursor up.
Alpha cursor down.
– Alpha cursor right.
– Alpha cursor left.
– Home alpha cursor.
– Erase to end of screen.
10 = Erase to end of line.
ll – Direct cursor address ( Move to row and column).
12 – Output cursor addressable text.
13 – Reverse video on.
14 – Reverse video off.
15 = Inquire current cursor address.
16 – Inquire tablet status. ( Is a digitiser connected?)
17 – Hard copy. e.g. Dump a graphics screen to printer.
18 -- Place graphics cursor at location.
19 – Remove graphics cursor. This turns the cursor off.
jn Ot IN WR OR
20 – 50
51 – 100
Reserved for future expansion.
Unused and available.
Polyline. Output lines from data in PISIN array.
Polymarker. Output markers at positions given in PTSIN. These markers are
typically (.* OX+t+).
Text. Output text from machine font at specified position.
Filled area. Display and fill a polygon.
Cell array. Create a pixel array from colour data given in the INTIN
array and at a position given in PISIN.
SUMMARY OF GSX OPCODES – continued
Generalised drawing primitive. These routines give you an easy way to
display bars, ares, pie slices and circles. These are not always fully
Set character height. Not possible of course if the Pluto font is used
but should be implemented for plotter device drivers and the suchlike.
Set character up vector. This allows you to rotate character strings if
the device will allow it.
Set colour representation. Will allow you to specify the red, green and
blue intensity associated with a colour index. (Presumably this is for
use in palette systems.)
Set linetype. You should be able to choose from solid, dashed, dotted or
Set line width.
Set line colour.
Set marker type.
Set marker scale.
Set marker colour.
Set hardware text font. (Only one to choose from in Pluto.)
Set text colour.
Set fill interior style. You should be able to choose from outline only,
solid fill, pattern fill or hatch pattern fill.
Set fill style index. This allows you to specify the type of pattern or
hatch fill you require from the selection available.
Set fill colour index, Having chosen the type of fill you require you can
now say what colour you want it done in.
Inquire colour representation. Returns the RGB intensities of a requested
Inquire cell array. Returns the pixel colour values of the requested