Mset
can be used store the mapping information in the process environment
in order to avoid scanning
/etc/map3270
each time
tn3270
is invoked.
To do this, place the following command in your
.login
file:
set noglob; setenv MAP3270 "`mset`"; unset noglob
Mset first determines the user's terminal type from the environment variable TERM. Normally mset then uses the file /etc/map3270 to find the keyboard mapping for that terminal. However, if the environment variable MAP3270 exists and contains the entry for the specified terminal, then that definition is used. If the value of MAP3270 begins with a slash (`/') then it is assumed to be the full pathname of an alternate mapping file and that file is searched first. In any case, if the mapping for the terminal is not found in the environment, nor in an alternate map file, nor in the standard map file, then the same search is performed for an entry for a terminal type of unknown. If that search also fails, then a default mapping is used.