📄 tn3270.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..\".\" @(#)tn3270.1 8.2 (Berkeley) 4/18/94.\".Dd April 18, 1994.Dt TN3270 1.Os BSD 4.3.Sh NAME.Nm tn3270.Nd full-screen remote login to.Tn IBM VM/CMS.Sh SYNOPSIS.Nm tn3270.Op Fl d.Op Fl n Ar filename.Op Fl t Ar commandname.Op Ar sysname Op port.Sh DESCRIPTION.Nm Tn3270permits a full-screen, full-duplex connectionfrom a.Tn UNIXmachineto an.Tn IBM(or compatible) machine..Nm Tn3270gives the appearance of being logged into the remote machinefrom an.Tn IBM3270 terminal.Of course, you must have an account on the machineto which you connect in order to log in..Nm Tn3270looks to the user in many respectslike the Yale.Tn ASCIITerminal Communication System II..Nm Tn3270is actually a modification of the Arpanet.Tn TELNETuser interface (see.Xr telnet 1 )which will, in certain circumstances, interpret and generateraw 3270 control streams..PpThe flags to.Nm tn3270are as follows:.Bl -tag -width Fl.It Fl dTurn on socket-level tracing (for super-user only).Fl n Ns Ar filenameSpecify a file to receive network trace dataoutput (from commands "toggle netdata" and"toggle options", see.Xr telnet 1 ) ;the default is for outputto be directed to the standard error file..Fl t Ns Ar commandnameSpecify a.Tn UNIXcommand to process.Tn IBM4994 style transparent modedata received from the remote.Tn IBMmachine..It Ar sysnameThe name of the remote system. If the remote nameis NOT specified, the user will be prompted for acommand (see below)..It Ar portThe port to connect to on the remote system.Normally,.Nm tn3270attempts to connect to thestandard.Tn TELNETport (port23) on the remote machine..El.PpWhen.Nm tn3270first connects to the remote system, it will negotiate to go into3270 mode.Part of this negotiation involves telling the remote system what model3270 it is emulating.In all cases,.Nm tn3270emulates a 3278 terminal.To decide which specific model,.Nm tn3270looks at the number of lines and columns on the actual terminal (asdefined in the.Ev TERMenvironment variable; see.Xr termcap 5 ) .The terminal (or window in which.Nm tn3270is running, on multiplewindow systems) must have at least 80 columns and 24 lines, or.Nm tn3270will not go into emulation mode.If the terminal does have at least 80 columns and at least 24 lines,the following table describes the emulation:.Pp.ne 7v.Bd -filled -offset center.Bl -column (rows*columns).It minimum_size emulated.It (rows*columns) terminal.It -------------- ------------.It 27*132 3278 model 5.It 43*80 3278 model 4.It 32*80 3278 model 3.It 24*80 3278 model 2..El.Ed.PpEmulation of the 3270 terminal is done in the.Tn UNIXprocess.This emulation involves mapping3270-style commands from the hostinto appropriate sequences to control the user's terminal screen..Nm Tn3270uses.Xr curses 3and the.Pa /usr/share/misc/termcapfile to do this.The emulation also involves simulating the special 3270 keyboard keys(program function keys, etc.)by mapping sequences of keystrokesfrom the.Tn ASCIIkeyboard into appropriate 3270 control strings.This mapping is terminal dependent and is specifiedin a description file,.Pa /usr/share/misc/map3270 ,(see.Xr map3270 5 )or in an environment variable.Ev MAP3270(and, if necessary,.Ev MAP3270A ,.Ev MAP3270B ,and so on - see.Xr mset 1 ) .Any special function keys on the.Tn ASCIIkeyboard are used whenever possible.If an entry for the user's terminalis not found,.Nm tn3270looks for an entry for the terminal type.Em unknown .If this is not found,.Nm tn3270uses a default keyboard mapping(see.Xr map3270 5 ) ..PpThe first character of each special keyboard mapping sequenceis either an.Tn ASCIIescape.Pq Tn ESC ,a control character, or an.Tn ASCIIdelete.Pq Tn DEL .If the user types an unrecognized function key sequence,.Nm tn3270sends an.Tn ASCIIbell.Pq Tn BEL ,or a visual bell ifdefined in the user's termcap entry, to the user's terminaland nothing is sent to the.Tn IBMhost..PpIf.Nm tn3270is invoked without specifying a remote host system name,it enters local command mode,indicated by the prompt.Dq Li tn3270>\ .In this mode,.Nm tn3270accepts and executesall the commands of.Xr telnet 1 ,plus one additional command:.Pp.Bl -tag -width Ar.It Ic transcomSpecify.Tn UNIXcommand for.Tn IBM4994 style transparent mode processing..El.Pp.Nm Tn3270command mode may also be entered, after connecting to a host, by typinga special escape sequence.If.Nm tn3270has succeeded in negotiating 3270 mode with the remote host, theescape sequence will be as defined by the map3270 (see.Xr map3270 5 )entry for the user's terminal type(typically control-C);otherwise the escape sequence will initially be set to thesingle character.Sq Li \&^](control right square bracket)..PpWhile in command mode, any host login session is still alivebut temporarily suspended.The host login session may be resumed by entering an empty line(press the.Tn RETURNkey)in response to the command prompt.A session may be terminated by logging off the foreign host,or by typing ``quit'' or ``close'' while in local command mode..Sh FILES.Bl -tag -width /usr/share/misc/termcap -compact.It Pa /usr/share/misc/termcap.It Pa /usr/share/misc/map3270.El.\" .Sh AUTHOR.\" Greg Minshall.Sh NOTESThe.Tn IBM4994 style transparent mode command is invoked when.Nm tn3270receives.Tn IBM4994 style transparent output from the remote host.Output and input pipes are created for communication between the twoprocesses.The pipes are closed when a 3270 clear command is received from the remotehosts, signaling the end of transparent mode output.Transparent mode is necessary for sending.Tn ASCIIcontrol characters over the3270 terminal connection;.Tn ASCIIgraphics terminal support is accomplished thisway.Developers of.Ic transcomcommands should note that the.Ic transcomstdin pipe end will be in.Dv CBREAKmode, with.Dv ECHOand.Dv CRMODturned off..Sh ENVIRONMENT.Nm Tn3270checks the following environment variables:.Ev TERM ,.Ev MAP3270 ,.Ev MAP3270[A...] .Information on these can be found in.Xr mset 1 ..Nm Tn3270also checks.Ev SHELL ,.Ev KEYBDand .Ev API3270 ..Sh SEE ALSO.Xr mset 1 ,.Xr telnet 1 ,.Xr curses 3 ,.Xr termcap 3 ,.Xr termcap 5 ,.Xr map3270 5 ,.Rs.%T "Yale ASCII Terminal Communication".%B "System II Program Description/Operator's Manual".%R IBM SB30-1911.Re.Sh HISTORYThe.Nm tn3270command appeared in.Bx 4.3 ..Sh BUGSTn3270 is slow and uses system resources prodigiously..PpNot all 3270 functions are supported,nor all Yale enhancements..PpError conditions (attempting to enter data in a protected field, forexample) should cause a message to be sent to the user's terminalinstead of just ringing a bell.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -