Mongo

Mongo is a program originally written in FORTRAN which can generate 2 and 3 dimensional graphics from data points. Mongo has the following screen drivers: Retrographics 640, DEC VT125/240 (Regis), Tektronix 4010/4014, Grinnell 270, HP 2648A, and Sun Windows. Since kermit can emulate the Tek 4010 terminal, one can use kermit ( from a PC ), put kermit in tek4010 emulation mode, and run mongo with that screen driver selected.

Mongo also has the driver for the following printers:

Versatec
Printronix
PostScript

PostScript is the only one that can be used in our department.

Mongo can be invoked in three different modes: Interactive, Interpretive, subroutine call, which are all described in a manual in AK120c. You can also use the on-line help by just typing "help" which prints a list of all the commands. To get more info on a specific command, type: "help some_command".

Printing:
The usual way to print from mongo is to use the following two commands:
printer 5 ( or printer 6 )
hardcopy

The first one selects the PostScript driver and the second one prints the file. Right now, the hardcopy command prints the output to the printer called "PostScript" which on all department machines is an alias for "ps1"; some faculty machines use another printer.

If you would like to print to a printer other than the default one, you have to save the output in a file first and then send that file to the desired printer. Here is how that can be done:

        setenv DUMP_MONGO	(force mongo to save the output
				in a file)
        mongo			(run mongo)
        ...			(enter mongo commands)
        printer 5		(select PostScript in Portrait
				mode)
        hardcopy		(print the result)
        end			(end mongo)

At this point a message appears which tells you the name of the file that contains the output. This file name is of the following form: "#mgoxxxxxxx.vec.plt". Now, use the "lpr" command to send that file to the desired PostScript printer, e.g.: "lpr -Pps2 #mgoxxxxx.vec.plt".

Maintained by webmaster@wpi.edu
Last modified: Sep 22, 2006, 20:28 EDT
[WPI] [ECE] [Back] [Top]