1 .\" $NetBSD: mset.1,v 1.10 2002/02/08 01:36:35 ross Exp $
3 .\" Copyright (c) 1986, 1990 The Regents of the University of California.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" from: @(#)mset.1 4.6 (Berkeley) 7/27/91
31 .\" $NetBSD: mset.1,v 1.10 2002/02/08 01:36:35 ross Exp $
50 retrieves mapping information
57 Normally, these mappings are found
59 .Pa /usr/share/misc/map3270
62 This information is used by the
69 output can be used to store the mapping information in the process environment
70 in order to avoid scanning
75 To do this, place the following command in your
78 .Bd -literal -offset indent
79 set noglob; setenv MAP3270 "\(gamset\(ga"; unset noglob
84 argument is not supplied,
86 attempts to determine the name of the keyboard the user is using,
92 environment variable is not set, then
94 uses the user's terminal type from the environment variable
101 to find the keyboard mapping for that terminal.
102 However, if the environment variable
104 exists and contains the entry for the specified keyboard, then that
108 begins with a slash (`/') then it is assumed to be the full pathname
109 of an alternative mapping file and that file is searched first.
110 In any case, if the mapping for the keyboard is not found in
111 the environment, nor in an alternative map file, nor in the standard map file,
112 then the same search is performed for an entry for a keyboard with the name
114 If that search also fails,
115 then a default mapping
124 When processing the various
126 entries (for the user's keyboard,
127 and all those encountered before the one for the user's keyboard),
129 normally will not complain about entries for unknown functions (like
135 to issue warning messages about these unknown entries.
139 entry is longer than the shell's 1024 environmental variable
140 length limit, the default
142 output cannot be used to store the mapping information in the process
143 environment to avoid scanning
152 to generate shell commands to set the environmental variables
155 and so on, breaking up the entry to fit within the shell environmental
156 variable length limit.
157 To set these variables, place the following command in your
160 .Bd -literal -offset indent
161 mset -shell \*[Gt] tmp ; source tmp ; /bin/rm tmp
164 When searching for the
166 entry that matches the user's keyboard,
170 instead of determining the keyboard name from the
174 environmental variables.
177 .Bl -tag -width /usr/share/misc/map3270 -compact
178 .It Pa /usr/share/misc/map3270
179 keyboard mapping for known keyboards