When an ASCII terminal is used as the display for systems or applications expecting a 3270 device, the special 3270 function keys must be mapped to ASCII character sequences which can be generated from the physical keyboard. The following procedure, "Defining TN3270 Keyboard Mapping," describes the steps used to create this mapping for the 7318 configuration file.
This procedure uses the termcfg command. This command generates the configuration file entries with the correct syntax. The format of the cns3270 file is also described in more detail in the following procedure.
The following information outlines the procedure for generating the [TermNN] and [KeymapNN] sections for the Model S20 configuration file.
You must have root authority.
Note: The configuration file supports only four [TermNN] sections. If you are creating a fifth terminal definition, ensure that you comment out one of the existing [TermNN] sections, thereby making that number available and preserving the commented terminal definition for possible future use.
termcfg -t NewTermType -T TermInfo -n TermNo -m MapFile > NewTermwhere the NewTermType parameter specifies the new terminal type, the TermInfo parameter specifies the terminfo file residing in the /usr/lib/terminfo/SubDirectory directory, the TermNo parameter specifies the number for the [TermNN] section in the Model S20 configuration file, the MapFile parameter specifies the file to which the new [TermNN] and [KeymapNN] sections are written.
cat NewTerm >> S20ConfigFileEdit the Model S20 configuration file to ensure that no conflicts have been created by adding the new [TermNN] and [KeymapNN] sections.
The termcfg command.
The cns3270 file format.