
Specification for terminal capabilities file generator

crtmain:  This script accepts three (3) parameters

     Parameter 1 = Source of terminal information

          Options - protermcap - uses $PROTERMCAP
                    termcap - uses /etc/termcap
                    terminfo - uses infocmp -C
                    other - uses user specified termcap file

     Parameter 2 = Source file for "other" selection

     Parameter 3 = Terminal type

          Default - $TERM

Notes:  Parameter 1 is the only required parameter.

        If parameter 1 is "other" then parameter 2 is required

        When required parameters are left out this script will
        echo a "1" to the screen.

This script will call one of four supporting scripts depending on the
value of parameter 1.  These scripts are:

     crtfrmpt - for protermcap source file
     crtfrmtc - for termcap source file
     crtfrmti - for terminfo source
     crtfrmot - for other source files

The screen output of this script is limited to either 0 or 1.  If
this script is successful then it will echo a "0" to the screen and
create a file.  The file will be your terminal type with the .out
extension.  For example if you are generating a capabilities file for
a wy60 terminal the file will be named "wy60.out".  If the script
fails to create a file it will echo a "1" and there will be no files
created for the terminal.

Examples: crtmain protermcap
          crtmain termcap "" wy60
          crtmain other /usr/tmp/termfile wy60

Bugs:  The color stop portion of COLOR statements in protermcap
       entries gets deleted.  This only effects color terminals in 
       protermcap entries or custom entries that you are editing with
       this tool.  

Limitations:  This tool only supports Unix based operating systems at
              this point.
