pgs(1L)

NAME
pgs - Preview postscript files in an MGR window

SYNOPSIS
Pgs [ -a<interval> ] [ -d ] [ -i ] [ -r<dots_per_inch> ] <postscript_file>

DESCRIPTION
Pgs is a Postscript interpreter for MGR. It calls the Ghostscript Postscript interpreter to render a Postscript file into a set of bitmapped images, one per page. The User interface permits the user to peruse through the pages interactively.

Pgs displays the first page as soon as it is finished being rendered. The remaining pages are rendered in the background. The status line at the top of the display prints the current page number, and the number of pages rendered so far. If additional pages are being processed, that is indicated on the status line as well. If the rendered page is larger than the window, the page can be panned around using the right most mouse button. The panning rate and direction is controlled by the mouse cursor position relative to the center of the window. If the button is held down, it goes into auto-repeat mode until it is released.

The middle mouse button activates a pop-up menu that lets the user select the next page, previous page, or goto a specific page, quit or suspend. In addition, the characters 'n' (or CR), and 'p' go to the next and previous pages respectively. For "vi" fans, the keys 'h', 'j', 'k' and 'l' cause the page to move left, down, up, and right respectively. The character 'g' will cause a prompt in the status line for a page number. The characters 'q' and '^Z' cause pgs to quit or suspend respectively.

If the postscript file is specified as '-', standard input is used for the postscript input. The command line options are:

-r<res>
    Render the images at res dots/inch resolution. The default is 75.

-i  Render the pages in inverse video

-a<interval>
    adjust the auto-repeat interval for the mouse while panning. Interval is the repeat interval in 100ths of seconds. The default is 5. A value of zero turns off the auto-repeat.

-d  print lots of diagnostic messages on stderr, which should be re-directed to a different window. Setting the environment variable DEBUG has the same effect.

The environment variable TMPDIR can be used to override the default temporary directory, which is "/tmp".

BUGS

*   Only the first 20 pages are accessible from the menu button.

*   Pgs can only be run on the MGR host.

FILES

gs  The Ghostscript interpreter.

SEE ALSO
gs(1) mgr(1L) pilot(1)

AUTHOR
S. A. Uhler.

ACKNOWLEDGEMENTS
pgs is based on pilot by S. D. Hawley.