GIST(1) | General Commands Manual | GIST(1) |
gist - browse binary cgm graphics files
gist [[ -in ] cgmfile ] [ page-number-list ] [ options ]
Gist is a binary CGM (Computer Graphics Metafile) browser. It reads an input cgmfile and produces output to the X window system, PostScript files (which can be printed using lpr(1)), or another binary CGM file. The cgmfile may be a family of CGMs; a family is recognized whenever the final one or two characters of the filenames (excluding an optional trailing ".cgm") are digits in a numerical sequence (e.g.- myfile00.cgm, myfile01.cgm, myfile02.cgm, etc.). In this case, the cgmfile argument should be the name of the first file in the family; gist will automatically hop back and forth from file to file as necessary. (A single page must not be split across files, and each file must be a legal CGM in its own right.) When gist opens a CGM for input, it must catalog the pages in the file by scanning through the file to find them. This cataloguing operation takes place in the background while gist waits for your input. Therefore, if you open a large family of CGMs, gist will be able to display the first few pages immediately, but if you ask for the last few pages, you will have to wait until the catalog is complete. After gist has catalogued the input family, you can render any page without delay.
is any number of space-delimited list elements; each element has one of the following forms:
Thus, pages 3, 5, 7, 9, 31, and 17 through 26 (in that order) would be specified as: 3-9-2 31 17-26
A page number list on the command line is most useful in conjunction with the -b or -f options.
Unless the -b or -f options were specified, gist expects further commands from the keyboard, or typed in its X window. Keyboard commands are:
Any of these commands may be abbreviated to the shortest part of their name which is unique -- dr for draw, s for send, etc.
The following commands may be typed either in a gist X window or at the keyboard prompt. The n is a prefix consisting of zero or more digits; if you do not specify n the default is always 1.
If the -x option is specified on the command line, gist can be run in the background like other X window programs. In this case, only the window commands will be recognized.
To print every page of a CGM file family myfile00.cgm: gist
myfile00.cgm -f | lpr
To print only pages 3, 5, 7, 9, 31, and 17 through 26 (in that order): gist
myfile00.cgm 3-9-2 31 17-26 -f | lpr
To start gist as a pure X window program, with output to
PostScript file myfile.ps: gist myfile00.cgm -ps myfile.ps -x &
Type the f, b or g commands in the gist graphics window to navigate through
myfile00.cgm. Use the s command to write the current page into myfile.ps;
the q command quits.
To use gist on foreign.cgm which was not generated by Yorick, try: gist -75 -gks -bg0fg1 foreign.cgm
David H. Munro, Lawrence Livermore National Laboratory
Y_SITE refers to the Yorick site directory; use the help command in yorick(1) to find its name at your site:
Gist is designed to convert yorick(1) binary CGM output files into PostScript perfectly. That is, running a yorick binary CGM through gist will produce exactly the same PostScript file (and X window) as yorick would have produced directly.
However, the ANSI CGM standard is not a page description language like PostScript. Therefore, non-yorick CGMs may or may not be acceptably rendered by Gist. The -gks and -bg0fg1 options may help, but you can expect fonts, polymarkers, and line styles to look different with Gist than with other CGM browsers (.e.g- idt from NCAR graphics).
If gist cannot find the PostScript template Y_SITE/gist/ps.ps, PostScript output will not work.
You can't use multiple X windows to compare two different pages (they all display the same page). Start a second copy of gist.
On pseudocolor displays, a color image may require you to move the mouse into gist's X window to display properly. Unless your window manager allows you to set colormap focus independently of keyboard focus, this can be annoying.
1994 August 30 | 4th Berkeley Distribution |