NOTE: The application discussed is VAX Forms Management System (FMS)
      specific. You must have FMS to use it.

This application is a very simple scientific calculator with functions that
take care of most of engineers' needs. It converts a VT100 terminal keypad into
calculator keys. The VT100 monitor displays the keymap and the normal
calculator display. Following is crude version of the monitor display.
(There is a better display available. See descriptions of files in the
directory)

     +-----------------------+                                              
     |                       |                 VT100 Keypad                 
     +-----------------------+           +-----------------------+          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     ||2nd| |Inv| | E | | C ||           ||PF1| |PF2| |PF3| |PF4||          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     || 7 | | 8 | | 9 | | - ||           || 7 | | 8 | | 9 | | - ||          
     ||sin| |cos| |tan| | / ||           ||   | |   | |   | |   ||          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     || 4 | | 5 | | 6 | | + ||           || 4 | | 5 | | 6 | | , ||          
     || ln| |log| |sqr| | x ||           ||   | |   | |   | |   ||          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     |+---+ +---+ +---+ +---+|           |+---+ +---+ +---+ +---+|          
     || 1 | | 2 | | 3 | |   ||           || 1 | | 2 | | 3 | |   ||          
     || MS| | MR| | M+| | = ||           ||   | |   | |   | | E ||          
     |+---+ +---+ +---+ |   ||           |+---+ +---+ +---+ | N ||          
     |+---------+ +---+ |   ||           |+---------+ +---+ | T ||          
     ||    0    | | . | |  y||           ||    0    | | . | | E ||          
     ||   pi    | |+/-| | x ||           ||         | |   | | R ||          
     |+---------+ +---+ +---+|           |+---------+ +---+ +---+|          
     +-----------------------+           +-----------------------+          
     
     
It is a subroutine written in VAX-FORTRAN that uses FMS calls for interactive
I/O on VT100 (and emulating) terminals and perform requested calculations. It
can be linked to application programs. For example:

    An applications program requires the input in, say, kilo-pascals while the
    user has the data available in pounds per square inch. A special symbol
    entered by the user brings the calculator on the screen; the user
    calculates the value and exits the calculator. This value is automatically
    passed to the program as the input.

This directory contains all the files necessary to use the CALCULATOR
program discussed in the following DECUS session.

Applications Programming With Forms Management System 
DM004 - Fun With FMS
Wednesday, April 30
Spring '86 DECUS Symposium Dallas

Presented by:
   Dilip Jain
   Project Engineer
   Computer-Aided Engineering
   Schwitzer, Household Manufacturing, Inc.
   P.O. Box 80-B
   Indianapolis, Indiana 46206

Permission is herby granted to modify or add or copy the software. However
it is not to be sold in any form, electronic or otherwise.
Author or Schwitzer does not assume any responsibility.
Improvements, suggestions, questions may be addressed to the author at
the above address.

DESCRIPTION OF THE FILES IN THIS DIRECTORY

1) 0000READ.ME  - This file that you are reading.
2) CALCFORM.FLG - FMS language source code for the form CALCULATOR
3) CALCFORM.FRM - FMS form CALCULATOR
4) CALCFORM.LIS - A file with escape sequences that, if typed on the VT100,
                  will display the form with video attributes.
5) CALCFORM.OBJ - Object module of the FMS form CALCULATOR. It is to be
                  used for linking an application program that uses the
                  CALCULATOR form as a memory resident form.

6) CALCPROG.FOR - FORTRAN language source code for the CALCULATOR.
7) CALCPROG.OBJ - Object module of the CALCULATOR program.

8) CALCULAT.FOR - FORTRAN language source code for the sample program
                  demonstrating the CALCULATOR.
9) CALCULAT.EXE - Executable image of the sample program demonstrating
                  the CALCULATOR.

                  CAUTION: VT1xx, VT2xx or emulating terminals only.

To get a demonstration of the program:
$ RUN CALCULAT

To link an application to the CALCULATOR:

$ LINK <program>,CALCPROG,CALCFORM

Obviously, if the program calls other modules, they must be linked as well,
and if CALCPROG and CALCFORM are not in the current directory, the directory
must also be specified.
