Changing all of the occurences of the "vi" and "ex" directory to "vi.d"
[unix-history] / usr.bin / tn3270 / mset.0
CommitLineData
15637ed4
RG
1MSET(1) 386BSD Reference Manual MSET(1)
2
3N\bNA\bAM\bME\bE
4 m\bms\bse\bet\bt - retrieve ASCII to IBM 3270 keyboard map
5
6S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
7 m\bms\bse\bet\bt [-\b-p\bpi\bic\bck\bky\by] [-\b-s\bsh\bhe\bel\bll\bl] [_\bk_\be_\by_\bb_\bo_\ba_\br_\bd_\bn_\ba_\bm_\be]
8
9D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
10 M\bMs\bse\bet\bt retrieves mapping information for the ASCII keyboard to IBM 3270
11 terminal special functions. Normally, these mappings are found in
12 /_\bu_\bs_\br/_\bs_\bh_\ba_\br_\be/_\bm_\bi_\bs_\bc/_\bm_\ba_\bp_\b3_\b2_\b7_\b0 (see map3270(5)). This information is used by
13 the tn3270 command (see tn3270(1)).
14
15 The default m\bms\bse\bet\bt output can be used to store the mapping information in
16 the process environment in order to avoid scanning m\bma\bap\bp3\b32\b27\b70\b0 each time
17 t\btn\bn3\b32\b27\b70\b0 is invoked. To do this, place the following command in your
18 ._\bl_\bo_\bg_\bi_\bn file:
19
20 set noglob; setenv MAP3270 "`mset`"; unset noglob
21
22 If the _\bk_\be_\by_\bb_\bo_\ba_\br_\bd_\bn_\ba_\bm_\be argument is not supplied, m\bms\bse\bet\bt attempts to determine
23 the name of the keyboard the user is using, by checking the KEYBD envi-
24 ronment variable. If the KEYBD environment variable is not set, then
25 m\bms\bse\bet\bt uses the user's terminal type from the environment variable TERM as
26 the keyboard name. Normally, m\bms\bse\bet\bt then uses the file map3270(5) to find
27 the keyboard mapping for that terminal. However, if the environment
28 variable MAP3270 exists and contains the entry for the specified key-
29 board, then that definition is used. If the value of MAP3270 begins with
30 a slash (`/') then it is assumed to be the full pathname of an alternate
31 mapping file and that file is searched first. In any case, if the map-
32 ping for the keyboard is not found in the environment, nor in an alter-
33 nate map file, nor in the standard map file, then the same search is per-
34 formed for an entry for a keyboard with the name _\bu_\bn_\bk_\bn_\bo_\bw_\bn. If that search
35 also fails, then a default mapping is used.
36
37 The arguments to m\bms\bse\bet\bt are:
38
39 -\b-p\bpi\bic\bck\bky\by When processing the various _\bm_\ba_\bp_\b3_\b2_\b7_\b0 entries (for the user's
40 keyboard, and all those encountered before the one for the
41 user's keyboard), m\bms\bse\bet\bt normally will not complain about en-
42 tries for unknown functions (like ``PFX1''; the -\b-p\bpi\bic\bck\bky\by argu-
43 ment causes m\bms\bse\bet\bt to issue warning messages about these un-
44 known entries.
45
46 -\b-s\bsh\bhe\bel\bll\bl If the _\bm_\ba_\bp_\b3_\b2_\b7_\b0 entry is longer than the shell's 1024 environ-
47 mental variable length limit, the default m\bms\bse\bet\bt output cannot
48 be used to store the mapping information in the process envi-
49 ronment to avoid scanning _\bm_\ba_\bp_\b3_\b2_\b7_\b0 each time t\btn\bn3\b32\b27\b70\b0 is in-
50 voked. The -\b-s\bsh\bhe\bel\bll\bl argument causes m\bms\bse\bet\bt to generate shell
51 commands to set the environmental variables MAP3270,
52 MAP3270A, and so on, breaking up the entry to fit within the
53 shell environmental variable length limit. To set these
54 variables, place the following command in your ._\bl_\bo_\bg_\bi_\bn file:
55
56 mset -shell > tmp ; source tmp ; /bin/rm tmp
57
58 _\bk_\be_\by_\bb_\bo_\ba_\br_\bd_\bn_\ba_\bm_\be
59 When searching for the _\bm_\ba_\bp_\b3_\b2_\b7_\b0 entry that matches the user's
60 keyboard, m\bms\bse\bet\bt will use _\bk_\be_\by_\bb_\bo_\ba_\br_\bd_\bn_\ba_\bm_\be instead of determining
61 the keyboard name from the KEYBD or TERM environmental vari-
62 ables.
63
64F\bFI\bIL\bLE\bES\bS
65
66 /usr/share/misc/map3270 keyboard mapping for known keyboards
67
68S\bSE\bEE\bE A\bAL\bLS\bSO\bO
69 tn3270(1), map3270(5)
70
71H\bHI\bIS\bST\bTO\bOR\bRY\bY
72 The m\bms\bse\bet\bt command appeared in 4.3BSD.
73
744.3 Berkeley Distribution July 27, 1991 3
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132