[ 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

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:

  1. Create a terminfo source file in the /usr/lib/hcon/terminfo directory.
    1. 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.
    2. 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.
  2. Set the TERMINFO environment variable to /usr/lib/hcon/terminfo.
  3. Execute the tic command to create your new terminal definition.
  4. To use your new terminal definition, set the TERM environment variable to the new terminal name (without the .H).
  5. 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 ]