Plotter Termcap Usage

Plotter size

Name

Description

px#num

Device resolution on X axis

py#num

Device resolution on Y axis

The "px" and "py" describe the number of addressable positions on the X and Y axes.

Color/Pen Capabilities

Name

Description

pn#num

Number of colors/pens

sp=str

Parameterized string for color/pen selection

xp=str

Same as sp, but selects an XOR pen

pw#num

Pen width in plotter resolution units

pu=str

Lift pen from surface

pd=str

Lower pen to surface

Starting/Stopping the Plotter

Name

Description

is=str

String to initialize the plotter. Sent prior to any plotting commands.

es=str

String to finish plot. Sent at the close of the device.

Line Drawing

Name

Description

mv=str

Move to coordinates

dr=str

Draw to coordinates

st=str

Set a point at coordinates

lx=str

Select line style "x" (0..9) A sequence of entries defining line styles 0 (solid) through 9. The Character Devices section contains a description of the line style numbers and the plotted representation.

The "mv" and "dr" strings use the same format as the termcap cm= sequence and add the following sequences:

%I

Tek 4010 X positive

%J

Tek 4010 Y positive

%Z

Tek 4105 X and Y

The "mv" and "dr" strings describe parameterized strings used for moving the pen around on the surface. If the "dr" string is defined, it will be assumed to also perform a pen up command.

As an example consider the following termcap entry for a HP7475 plotter:

#
# plotter entry for HP7475 type plotters. Does
# setup to plotter requiring xon/xoff line
# control.
#
hp7475|hp-7475|hp 7475 plotter:\
 :co#120:li#66:px#10365:py#7962:\
 :is=DF;\E.R;\E.I81;;17\72\E.N;19\72pa;pu;spl;:\
 :pu=pu;:pd=pd;:mv=pa%r%d,%d;:dr=pa%r%d,%d;:\
 :pn#6:pw#10:sp=sp%i%d;:\
 :es=pu;sp0;:l0=lt;:l1=lt2,6;: