📄 mset.1
字号:
.\" Copyright (c) 1986, 1990, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)mset.1 8.1 (Berkeley) 6/6/93.\".Dd June 6, 1993.Dt MSET 1.Os BSD 4.3.Sh NAME.Nm mset.Nd retrieve.Tn ASCIIto.Tn IBM3270 keyboard map.Sh SYNOPSIS.Nm mset.Op Fl picky.Op Fl shell.Op Ar keyboardname.Sh DESCRIPTION.Nm Msetretrieves mapping informationfor the.Tn ASCIIkeyboard to.Tn IBM3270 terminalspecial functions.Normally, these mappings are foundin.Pa /usr/share/misc/map3270(see.Xr map3270 5 ) .This information is used by the.Xr tn3270command (see.Xr tn3270 1 ) ..PpThe default.Nm msetoutput can be used to store the mapping information in the process environmentin order to avoid scanning.Nm map3270each time.Nm tn3270is invoked.To do this, place the following command in your.Pa .loginfile:.Bd -literal -offset indentset noglob; setenv MAP3270 "\(gamset\(ga"; unset noglob.Ed.PpIf the.Ar keyboardnameargument is not supplied,.Nm msetattempts to determine the name of the keyboard the user is using,by checking the.Ev KEYBDenvironment variable.If the.Ev KEYBDenvironment variable is not set, then.Nm msetuses the user's terminal type from the environment variable.Ev TERMas the keyboard name.Normally,.Nm msetthen uses the file.Xr map3270 5to find the keyboard mapping for that terminal.However, if the environment variable.Ev MAP3270exists and contains the entry for the specified keyboard, then thatdefinition is used.If the value of.Ev MAP3270begins with a slash (`/') then it is assumed to be the full pathnameof an alternate mapping file and that file is searched first.In any case, if the mapping for the keyboard is not found inthe environment, nor in an alternate map file, nor in the standard map file,then the same search is performed for an entry for a keyboard with the name.Ar unknown .If that search also fails,then a default mappingis used..PpThe arguments to.Nm msetare:.Pp.Bl -tag -width Fl.It Fl pickyWhen processing the various.Pa map3270entries (for the user's keyboard,and all those encountered before the one for the user's keyboard),.Nm msetnormally will not complain about entries for unknown functions (like.Dq PFX1 ;the.Fl pickyargument causes.Nm msetto issue warning messages about these unknown entries..It Fl shellIf the.Pa map3270entry is longer than the shell's 1024 environmental variablelength limit, the default.Nm msetoutput cannot be used to store the mapping information in the processenvironment to avoid scanning.Pa map3270each time.Nm tn3270is invoked.The.Fl shellargument causes.Nm msetto generate shell commands to set the environmental variables.Ev MAP3270 ,.Ev MAP3270A ,and so on, breaking up the entry to fit within the shell environmentalvariable length limit.To set these variables, place the following command in your.Pa .loginfile:.Bd -literal -offset indentmset -shell > tmp ; source tmp ; /bin/rm tmp.Ed.It Ar keyboardnameWhen searching for the.Pa map3270entry that matches the user's keyboard,.Nm msetwill use.Ar keyboardnameinstead of determining the keyboard name from the.Ev KEYBDor.Ev TERMenvironmental variables..Sh FILES.Bl -tag -width /usr/share/misc/map3270 -compact.It Pa /usr/share/misc/map3270keyboard mapping for known keyboards.El.Sh SEE ALSO.Xr tn3270 1 ,.Xr map3270 5.Sh HISTORYThe.Nm msetcommand appeared in.Bx 4.3 .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -