[ Previous |
Next |
Contents |
Search ]
3270 Host Connection Program 2.1 and 1.3.3 for AIX: Guide and Reference
Defining a New Terminal for HCON
This procedure explains how to define a new terminal for HCON.
Prerequisites
- HCON must be installed on your system. For installation information, refer to the AIX Installation Guide.
- You must have read access to the /usr/share/lib/terminfo directory.
- You must have read and write access to the /usr/lib/hcon/terminfo directory.
- You should be familiar with using the terminfo facility to create terminal definitions.
Procedure
When installed, HCON supports all high-function terminals (HFTs) and the following ASCII terminals: 3151, 3161, 3162, 3163, 3164, DEC VT100, DEC VT220, WYSE WY-50, and WYSE WY-60.
The terminfo source files (the ibm.ti.H, dec.ti.H, and wyse.ti.H files) used to create the supported terminals are in the /usr/lib/hcon/terminfo directory. Look at these files to see an example of a terminal definition. The terminfo binary files for these supported terminals are in subdirectories of the /usr/lib/hcon/terminfo directory. Each subdirectory is named with the first letter of the terminal file name. For example, the 5081 terminfo binary file, ibm5081.H, is in the /usr/lib/hcon/terminfo/i directory.
To run HCON on another type of terminal, use the terminfo facility to map the new terminal keys to the HCON key names.
To define a new terminal for HCON, you must:
- Create a terminfo source file in the /usr/lib/hcon/terminfo directory.
- Put a terminfo entry for your new terminal in the file. The name of the terminfo entry must be the name of your terminal with a .H (dot H) appended to it. For example, if the terminal you are adding is an XYZ2500, use XYZ2500.H
for the entry name.
- If your terminfo entry uses definitions from other terminfo source files (by including them with the terminfo use capability), you must include the contents of those files in your source file, preceding the entry for the new terminal.
- Set the TERMINFO environment variable to /usr/lib/hcon/terminfo.
- Execute the tic command to create your new terminal definition.
- To use your new terminal definition, set the TERM environment variable to the new terminal name (without the .H).
- If necessary, create a new keyboard definition table for HCON and map keys on your new keyboard to the emulator functions.
[ Previous |
Next |
Contents |
Search ]