APPENDIX A |
SYSTEM INFORMATION | |||||||||||||
INTRODUCTION |
While all TK products are operating system independent, they are
distributed with a CONFIG file predefined to the O.S.
currently running on your system. This appendix describes the process of
defining the terminal parameters which make it possible for most terminals
to be used with PG&A Toolkit software. It is written for the programmer or
systems manager. The appendix consists of two sections; Section I describes the initialization process for a new terminal, including a brief explanation of the necessary responses. Section II provides information necessary to define new device types to the software. | |||||||||||||
SECTION I INITIALIZATION |
PG&A's Toolkit software is designed to initialize itself when run for the
first time on a system or an I/O line. If the initialization is the first
for the system, the operator will be asked several questions about the
the system's configuration. The information needed is listed below:
An example of the dialog is shown at the end of this section. Below is some detailed information on each step in the initialization process. | |||||||||||||
CRT TYPES |
Once the operating system has been initialized, you will be asked what
particular CRT types you will want to be brought on-line. It will prompt
you for the type and you will need to respond with a Y for yes and N for
no. A "RETURN" without a Y or N will assume a no. If you will be using
that particular type with the PG&A software, enter a Y.
NOTE: It is best to select only the device types to be used at your site. Certain modules of the PG&A software will make changes to the text based on the number of device types. The more types you specify, the longer it will take. | |||||||||||||
RIGHT MARGIN SETUP |
Some application packages assume that the right margin parameter of the
terminal is defined to a particular value (usually 80). Since much of the
PG&A software cannot work properly with right margin set, it will clear
this value when it begins executing a Toolkit routine. Upon a normal exit of the Toolkit routines, the right margin will be reinstated. If this is necessary on your system, enter the value of the desired right margin (from 0 to 255). Otherwise, just press "RETURN". | |||||||||||||
MENU DRIVER OPTION |
There are two ways of selecting items on the PG&A menus. One way is to
move the pointer to the appropriate entry and then press the "RETURN" key
to make the selection. The other is to press the first letter of the
desired option followed by an optional "RETURN". This second method, entering the option letter, is generally preferred by advanced users. It enables quicker response and takes advantage of type-ahead if supported by your operating system. If the "RETURN" is required, then this operation becomes a two step procedure. You will be asked whether the "RETURN" is required. Generally speaking, you may want to make the decision based on the menus your users are most accustomed. If "RETURN" is to be required respond by entering "Y" for 'yes'; otherwise "N" for 'no'.
| |||||||||||||
INCONSISTENT $I VALUES |
The TK configuration routines determine the device type of the terminal by
two means based upon your answer to the Inconsistent $I question:
This question has no value if there is only one device type. | |||||||||||||
RE-INITIALIZING |
After you have answered the initialization questions, you can go back at
anytime and modify your responses. To call the initialization routine
directly, type "DO ^TKINIT" from the programming mode. (You may want to
kill the ^TK global first to start from the beginning.)
| |||||||||||||
EXAMPLE OF INITIALIZATION |
The following two screens are an example of a typical TKINIT session.
(Only one device type is listed to save room.)
| |||||||||||||
SECTION II DEVICE PARAMETERS |
The PG&A software allows the user or system manager to add or modify
device characteristics to the device protocol global named ^TK. Three
main concerns are addressed in this protocol:
With a properly configured system, this protocol will provide the user with a consistent, high level, full screen oriented interface with as little system overhead as possible. Although not all terminals will support all elements defined within this protocol, usually a meaningful subset can be defined which will give a close approximation to the intended result. To edit an existing device type or add a new one, call the device definition program ^TKDEV as shown below:
| |||||||||||||
OPTION 1 |
The first option in the device definition program is used to indicate to
the PG&A software which terminal types are attached to the system's
ports. One terminal types have been defined, this should not have to be
redone unless you change terminals at one or more ports. A typical dialogue might look like this...
| |||||||||||||
OPTION 2 Edit Device Parameters |
The second option is used to create and edit a new device type. The
toolkit software comes with a number of terminal types already built into
the initialization sequence, but you can modify the existing terminal
parameters, or you can add your own types. You will need to have your terminal's programming guide available should you need to modify these parameters. You will be asked for control sequences for clearing the screen, moving the cursor, inserting and deleting lines and so on. You will also be asked to provide the line drawing character set to be used by the Toolkits when drawing boxes and other shapes. If your terminal does not support one or more of these parameters, skip it and continue on. You may find that you will be able to function quite capably without it. There are several things to watch for when entering the values. Asterisks to the left of an item indicate that you need to enter the MUMPS code to effect the function required. This is true for cursor addressing and scroll regions. The code entered should be a valid MUMPS argument for a WRITE command. All other items required you to enter the decimal values for the control sequence. If more than one value is necessary separate them with a comma. Do not use spaces. For example, if the control sequence for clearing the screen is an ESC C, then you should enter...
27,67 ...where the 27 is the decimal value for the ESCAPE and the 67 is the decimal value for C. An example of the dialogue of Option 2 is illustrated in the four screens which follow.
In the these examples the user entered the decimal values and the computer echoed back the values enclosed in the $CREATE function. The '$C and ')' were not entered; this is done by the program. On asterisked items in the second and third screen, such as the item 'P' for cursor addressing, the user did enter the '$C( )' since the entire MUMPS expression is required. This is to allow for other variations in the code such as adding 31 to the row and column values as needed. Note also that it is not necessary to look up the values for the parameters listed in the INPUT PARAMETERS section. When editing the terminal type that you are also typing on, you are permitted to press the key corresponding to the parameter you are defining. For example, press the Cursor Up key on your terminal for the first parameter, Cursor Down key for the second and so on. When the key is pressed the program will display the decimal values received from the key. The "RETURN" key need not be pressed when entering values in this way. If you press the appropriate key and the program does not respond, then one of the following conditions may be the problem.
| |||||||||||||
OPTION 3 Edit Function Key Definitions |
Option 3 is the option where the system manager can spend the most time.
This option allows you to define which keys will perform various
operations when editing text in TK-NOTE, TK-WRITER and TK-FORM. Function
keys are optional in TK-CALC because the commands can be invoked with the
"/" as in other popular spreadsheet packages. If the functions key are defined for your particular terminal, they may be used where applicable. If you are not using the software packages listed above, you need not be concerned with this option. Unlike the other two options in the device utilities, this option requires that you use the terminal type that you are currently defining to make the definitions. You will be required to press the function key that corresponds to the feature that you would like it to perform. You cannot enter the decimal values directly on the screen. A number of terminal types are already defined for you and the software will use these defaults when you run TK-NOTE, TK-FORM, TK-CALC, and TK-WRITER. If your terminal type is not defined, these packages will automatically take you to this option so that you can define it. Once defined, you can always return to this option in order to make changes. Keep the following points in mind when you edit function key definitions:
The program will then request for MUMPS code to enter and exit the 132 column mode. Leave these two items blank if the terminal doesn't support 132 columns, otherwise enter MUMPS Xecutable code to change the terminal appropriately. The program will then request for MUMPS code to enter and exit the INSERT CHARACTER mode. Leave these two items blank if the terminal doesn't support this mode, otherwise enter MUMPS Xecutable code to change the terminal appropriately. Below is example of the first screen for the VT220 terminal:
Each field provides 255 characters in which to make these entries. You can use the insert and delete characters, and cursor keys for editing. The second and third screens of Option 3 is where function keys are actually defined. Press the desired key and then enter a short description of the key you just entered. If you pressed F1, enter 'F1'. If you pressed Shift-F1, make sure you enter 'SHIFT F1'. This description is used in conjunction with the Toolkits' help screens. The following two screen shows the function key definitions of the VT220 as they are defined by the TK initialization routines:
|