1MSET(1) General Commands Manual MSET(1)
2
3
4
6 mset - retrieve ASCII to IBM 3270 keyboard map
7
9 mset
10
12 Mset retrieves mapping information for the ASCII keyboard to IBM 3270
13 terminal special functions. Normally, these mappings are found in
14 /usr/share/misc/map3270 (see map3270(5)). This information is used by
15 the tn3270 command (see tn3270(1)).
16
17 Mset can be used store the mapping information in the process environā
18 ment in order to avoid scanning /usr/share/misc/map3270 each time
19 tn3270 is invoked. To do this, place the following command in your
20 .login file:
21
22 set noglob; setenv MAP3270 "`mset`"; unset noglob
23
24 Mset first determines the user's terminal type from the environment
25 variable TERM. Normally mset then uses the file
26 /usr/share/misc/map3270 to find the keyboard mapping for that terminal.
27 However, if the environment variable MAP3270 exists and contains the
28 entry for the specified terminal, then that definition is used. If the
29 value of MAP3270 begins with a slash (`/') then it is assumed to be the
30 full pathname of an alternate mapping file and that file is searched
31 first. In any case, if the mapping for the terminal is not found in
32 the environment, nor in an alternate map file, nor in the standard map
33 file, then the same search is performed for an entry for a terminal
34 type of unknown. If that search also fails, then a default mapping is
35 used.
36
38 /usr/share/misc/map3270 keyboard mapping for known terminals
39
41 tn3270(1), map3270(5)
42
44 If the entry for the specific terminal exceeds 1024 bytes, csh(1) will
45 fail to set the environment variable. Mset should probably detect this
46 case and output the path to the map3270 file instead of the terminal
47 entry.
48
49
50
514.3 Berkeley Distribution November 16, 1996 MSET(1)