XHPGL(1)

NAME
xhpgl - HPGL version 7470a Xwindow display program

SYNOPSIS
xhpgl -cf [color_file] -fn [font] -geom [window geometry] file

DESCRIPTION
xhpgl is an Xwindow display program that will read a file in HPGL syntax and display it on a X server DISPLAY. xhpgl is compatible with X11. The HPGL Syntax is restricted to that described in the 7470A manual. Most of the commands are supported, but some are not (see supported commands). Xhpgl also has some added features. Xhpgl supports up to 8 different pens where the 7470A routine only supports 2. The color/pen assignments are user definable. All pen colors are read from a file called $HOME/.hpcolors. The colors supported are: black, red, green, blue, yellow, cyan, magenta, gold, maroon, turquoise, violet, orange and white. The .hpcolors file is of the form "pen# color". Only pens 1 to 8 are used. an error will occur if a pen number larger than 8 is given. If no color file is found the program will display a message and use internal values. The -cf color_file option may be used to over-ride the default color file on a case by case bases. The text used in xhpgl is of fixed size. That means that there is no scaling or slanting of text allowed. To help make text more usable xhpgl will select a font based on the window size. Also, the -fn option may be used to specify any user font instead of the default selection. Xhpgl has simple commands built into it for controlling the display window. 'z' allows the user to zoom into a portion of the xhpgl display. 'u' unzooms, effectivly quadrupling the area shown. 'o' returns to the original display, 'r' redraws the screen, and 'q' quits the program. All other keys and mouse activity are ignored.

OPTIONS
xhpgl will take any font supplied by the user. The -fn parameter is used for this purpose. xhpgl will take only one file in HPGL syntax at a time and display it. The -cf color_file option is used to instruct xhpgl to use a different color file other than $HOME/.hpcolors.

SUPPORTED COMMANDS
xhpgl will recognize and execute the following HPGL commands: LT, LB, PA, PR, PU, PD, IN, DF, SP, and SC. All others are read and accepted however no action will be taken.

AUTHOR
Original xhpgl program: Randy L. Yach
Port to X11: Andrew Gerber (gerber@solbourne.com)
Parser: Dieter Muller (dworkin@solbourne.com)