xref: /csrg-svn/usr.bin/telnet/telnet.1 (revision 67354)
162313Sbostic.\" Copyright (c) 1983, 1990, 1993
262313Sbostic.\"	The Regents of the University of California.  All rights reserved.
319759Smckusick.\"
450604Scael.\" %sccs.include.redist.roff%
519759Smckusick.\"
6*67354Sah.\"	@(#)telnet.1	8.6 (Berkeley) 06/01/94
735656Sbostic.\"
843085Scael.Dd
943085Scael.Dt TELNET 1
1043085Scael.Os BSD 4.2
1143085Scael.Sh NAME
1243085Scael.Nm telnet
1343085Scael.Nd user interface to the
1450604Scael.Tn TELNET
1543085Scaelprotocol
1643085Scael.Sh SYNOPSIS
1743085Scael.Nm telnet
1866295Sdab.Op Fl 8EFKLacdfrx
1965987Sdab.Op Fl S Ar tos
2065987Sdab.Op Fl X Ar authtype
2165987Sdab.Op Fl e Ar escapechar
2265987Sdab.Op Fl k Ar realm
2365987Sdab.Op Fl l Ar user
2443085Scael.Op Fl n Ar tracefile
2550604Scael.Oo
2645013Scael.Ar host
2745013Scael.Op port
2850604Scael.Oc
2943085Scael.Sh DESCRIPTION
3038711SbormanThe
3143085Scael.Nm telnet
3238711Sbormancommand
3343085Scaelis used to communicate with another host using the
3450604Scael.Tn TELNET
3543085Scaelprotocol.
3643085ScaelIf
3743085Scael.Nm telnet
3838711Sbormanis invoked without the
3943085Scael.Ar host
4038711Sbormanargument, it enters command mode,
4143085Scaelindicated by its prompt
4243085Scael.Pq Nm telnet\&> .
4319759SmckusickIn this mode, it accepts and executes the commands listed below.
4419759SmckusickIf it is invoked with arguments, it performs an
4543085Scael.Ic open
4643085Scaelcommand with those arguments.
4743085Scael.Pp
4843085ScaelOptions:
4950604Scael.Bl -tag -width indent
5065987Sdab.It Fl 8
5165987SdabSpecifies an 8-bit data path.  This causes an attempt to
5265987Sdabnegotiate the
5365987Sdab.Dv TELNET BINARY
5465987Sdaboption on both input and output.
5565987Sdab.It Fl E
5665987SdabStops any character from being recognized as an escape character.
5765987Sdab.It Fl F
5865987SdabIf Kerberos V5 authentication is being used, the
5965987Sdab.Fl F
6065987Sdaboption allows the local credentials to be forwarded
6165987Sdabto the remote system, including any credentials that
6265987Sdabhave already been forwarded into the local environment.
6365987Sdab.It Fl K
6465987SdabSpecifies no automatic login to the remote system.
6565987Sdab.It Fl L
6665987SdabSpecifies an 8-bit data path on output.  This causes the
6765987SdabBINARY option to be negotiated on output.
6865987Sdab.It Fl S Ar tos
6965987SdabSets the IP type-of-service (TOS) option for the telnet
7065987Sdabconnection to the value
7165987Sdab.Ar tos,
7265987Sdabwhich can be a numeric TOS value
7365987Sdabor, on systems that support it, a symbolic
7465987SdabTOS name found in the /etc/iptos file.
7565987Sdab.It Fl X Ar atype
7665987SdabDisables the
7765987Sdab.Ar atype
7865987Sdabtype of authentication.
7950604Scael.It Fl a
8045010SkarelsAttempt automatic login.
8150604ScaelCurrently, this sends the user name via the
8250604Scael.Ev USER
8350604Scaelvariable
8450604Scaelof the
8550604Scael.Ev ENVIRON
8650604Scaeloption if supported by the remote system.
8745010SkarelsThe name used is that of the current user as returned by
8845010Skarels.Xr getlogin 2
8945010Skarelsif it agrees with the current user ID,
9045010Skarelsotherwise it is the name associated with the user ID.
9165987Sdab.It Fl c
9265987SdabDisables the reading of the user's
9365987Sdab.Pa \&.telnetrc
9465987Sdabfile.  (See the
9565987Sdab.Ic toggle skiprc
9665987Sdabcommand on this man page.)
9765987Sdab.It Fl d
9865987SdabSets the initial value of the
9965987Sdab.Ic debug
10065987Sdabtoggle to
10165987Sdab.Dv TRUE
10265987Sdab.It Fl e Ar escape char
10365987SdabSets the initial
10465987Sdab.Nm
10565987Sdab.Nm telnet
10665987Sdabescape character to
10765987Sdab.Ar escape char.
10865987SdabIf
10965987Sdab.Ar escape char
11065987Sdabis omitted, then
11165987Sdabthere will be no escape character.
11265987Sdab.It Fl f
11365987SdabIf Kerberos V5 authentication is being used, the
11465987Sdab.Fl f
11565987Sdaboption allows the local credentials to be forwarded to the remote system.
116*67354Sah.ne 1i
11765987Sdab.It Fl k Ar realm
11865987SdabIf Kerberos authentication is being used, the
11965987Sdab.Fl k
12065987Sdaboption requests that telnet obtain tickets for the remote host in
12165987Sdabrealm realm instead of the remote host's realm, as determined
12265987Sdabby
12365987Sdab.Xr krb_realmofhost 3 .
12450604Scael.It Fl l Ar user
12545010SkarelsWhen connecting to the remote system, if the remote system
12650604Scaelunderstands the
12750604Scael.Ev ENVIRON
12850604Scaeloption, then
12945010Skarels.Ar user
13045010Skarelswill be sent to the remote system as the value for the variable USER.
13145010SkarelsThis option implies the
13245010Skarels.Fl a
13345010Skarelsoption.
13445010SkarelsThis option may also be used with the
13545010Skarels.Ic open
13645010Skarelscommand.
13765987Sdab.It Fl n Ar tracefile
13865987SdabOpens
13965987Sdab.Ar tracefile
14065987Sdabfor recording trace information.
14165987SdabSee the
14265987Sdab.Ic set tracefile
14365987Sdabcommand below.
14465987Sdab.It Fl r
14565987SdabSpecifies a user interface similar to
14665987Sdab.Xr rlogin 1 .
14765987SdabIn this
14865987Sdabmode, the escape character is set to the tilde (~) character,
14965987Sdabunless modified by the -e option.
15065987Sdab.It Fl x
15165987SdabTurns on encryption of the data stream if possible.  This
15265987Sdaboption is not available outside of the United States and
15365987SdabCanada.
15450604Scael.It Ar host
15543085ScaelIndicates the official name, an alias, or the Internet address
15643085Scaelof a remote host.
15750604Scael.It Ar port
15843085ScaelIndicates a port number (address of an application).  If a number is
15943085Scaelnot specified, the default
16043085Scael.Nm telnet
16143085Scaelport is used.
16250604Scael.El
16343085Scael.Pp
16465987SdabWhen in rlogin mode, a line of the form ~.  disconnects from the
16565987Sdabremote host; ~ is the telnet escape character.
16665987SdabSimilarly, the line ~^Z suspends the telnet session.
16765987SdabThe line ~^] escapes to the normal telnet escape prompt.
16865987Sdab.Pp
16919759SmckusickOnce a connection has been opened,
17043085Scael.Nm telnet
17138711Sbormanwill attempt to enable the
17250604Scael.Dv TELNET LINEMODE
17338711Sbormanoption.
17438711SbormanIf this fails, then
17543085Scael.Nm telnet
17638711Sbormanwill revert to one of two input modes:
17743085Scaeleither \*(Lqcharacter at a time\*(Rq
17843085Scaelor \*(Lqold line by line\*(Rq
17927692Sminshalldepending on what the remote system supports.
18043085Scael.Pp
18143085ScaelWhen
18250604Scael.Dv LINEMODE
18343085Scaelis enabled, character processing is done on the
18438711Sbormanlocal system, under the control of the remote system.  When input
18538711Sbormanediting or character echoing is to be disabled, the remote system
18638711Sbormanwill relay that information.  The remote system will also relay
18738711Sbormanchanges to any special characters that happen on the remote
18838711Sbormansystem, so that they can take effect on the local system.
18943085Scael.Pp
19043085ScaelIn \*(Lqcharacter at a time\*(Rq mode, most
19127692Sminshalltext typed is immediately sent to the remote host for processing.
19243085Scael.Pp
19343085ScaelIn \*(Lqold line by line\*(Rq mode, all text is echoed locally,
19427692Sminshalland (normally) only completed lines are sent to the remote host.
19543085ScaelThe \*(Lqlocal echo character\*(Rq (initially \*(Lq^E\*(Rq) may be used
19627692Sminshallto turn off and on the local echo
19727692Sminshall(this would mostly be used to enter passwords
19827692Sminshallwithout the password being echoed).
19943085Scael.Pp
20043085ScaelIf the
20150604Scael.Dv LINEMODE
20243085Scaeloption is enabled, or if the
20343085Scael.Ic localchars
20450604Scaeltoggle is
20550604Scael.Dv TRUE
20650604Scael(the default for \*(Lqold line by line\*(Lq; see below),
20727692Sminshallthe user's
20843085Scael.Ic quit  ,
20943085Scael.Ic intr ,
21027692Sminshalland
21143085Scael.Ic flush
21227692Sminshallcharacters are trapped locally, and sent as
21350604Scael.Tn TELNET
21427692Sminshallprotocol sequences to the remote side.
21543085ScaelIf
21650604Scael.Dv LINEMODE
21743085Scaelhas ever been enabled, then the user's
21843085Scael.Ic susp
21938711Sbormanand
22043085Scael.Ic eof
22138711Sbormanare also sent as
22250604Scael.Tn TELNET
22338711Sbormanprotocol sequences,
22438711Sbormanand
22543085Scael.Ic quit
22643085Scaelis sent as a
22750604Scael.Dv TELNET ABORT
22843085Scaelinstead of
22950604Scael.Dv BREAK
23027692SminshallThere are options (see
23143085Scael.Ic toggle
23243085Scael.Ic autoflush
23327692Sminshalland
23443085Scael.Ic toggle
23543085Scael.Ic autosynch
23627692Sminshallbelow)
23727692Sminshallwhich cause this action to flush subsequent output to the terminal
23827692Sminshall(until the remote host acknowledges the
23950604Scael.Tn TELNET
24027692Sminshallsequence) and flush previous terminal input
24127692Sminshall(in the case of
24243085Scael.Ic quit
24327692Sminshalland
24443085Scael.Ic intr  ) .
24543085Scael.Pp
24627692SminshallWhile connected to a remote host,
24743085Scael.Nm telnet
24827692Sminshallcommand mode may be entered by typing the
24943085Scael.Nm telnet
25049965Ssellgren\*(Lqescape character\*(Rq (initially \*(Lq^]\*(Rq).
25119759SmckusickWhen in command mode, the normal terminal editing conventions are available.
25243085Scael.Pp
25349965SsellgrenThe following
25449965Ssellgren.Nm telnet
25543085Scaelcommands are available.
25627692SminshallOnly enough of each command to uniquely identify it need be typed
25727692Sminshall(this is also true for arguments to the
25843085Scael.Ic mode  ,
25943085Scael.Ic set ,
26043085Scael.Ic toggle  ,
26143085Scael.Ic unset ,
26243085Scael.Ic slc  ,
26345010Skarels.Ic environ ,
26427692Sminshalland
26543085Scael.Ic display
26627692Sminshallcommands).
26743085Scael.Pp
26850604Scael.Bl -tag -width "mode type"
26965987Sdab.It Ic auth Ar argument ...
27065987SdabThe auth command manipulates the information sent through the
27165987Sdab.Dv TELNET AUTHENTICATE
27265987Sdaboption.  Valid arguments for the
27365987Sdabauth command are as follows:
27465987Sdab.Bl -tag -width "disable type"
27565987Sdab.It Ic disable Ar type
27665987SdabDisables the specified type of authentication.  To
27765987Sdabobtain a list of available types, use the
27865987Sdab.Ic auth disable \&?
27965987Sdabcommand.
28065987Sdab.It Ic enable Ar type
28165987SdabEnables the specified type of authentication.  To
28265987Sdabobtain a list of available types, use the
28365987Sdab.Ic auth enable \&?
28465987Sdabcommand.
28565987Sdab.It Ic status
28665987SdabLists the current status of the various types of
28765987Sdabauthentication.
28865987Sdab.El
28950604Scael.It Ic close
29027692SminshallClose a
29150604Scael.Tn TELNET
29227692Sminshallsession and return to command mode.
29350604Scael.It Ic display Ar argument ...
29438711SbormanDisplays all, or some, of the
29543085Scael.Ic set
29638711Sbormanand
29743085Scael.Ic toggle
29838711Sbormanvalues (see below).
29965987Sdab.It Ic encrypt Ar argument ...
30065987SdabThe encrypt command manipulates the information sent through the
30165987Sdab.Dv TELNET ENCRYPT
30265987Sdaboption.
30365987Sdab.Pp
30465987SdabNote:  Because of export controls, the
30565987Sdab.Dv TELNET ENCRYPT
30665987Sdaboption is not supported outside of the United States and Canada.
30765987Sdab.Pp
30865987SdabValid arguments for the encrypt command are as follows:
30965987Sdab.Bl -tag -width Ar
31065987Sdab.It Ic disable Ar type Ic [input|output]
31165987SdabDisables the specified type of encryption.  If you
31265987Sdabomit the input and output, both input and output
31365987Sdabare disabled.  To obtain a list of available
31465987Sdabtypes, use the
31565987Sdab.Ic encrypt disable \&?
31665987Sdabcommand.
31765987Sdab.It Ic enable Ar type Ic [input|output]
31865987SdabEnables the specified type of encryption.  If you
31965987Sdabomit input and output, both input and output are
32065987Sdabenabled.  To obtain a list of available types, use the
32165987Sdab.Ic encrypt enable \&?
32265987Sdabcommand.
32365987Sdab.It Ic input
32465987SdabThis is the same as the
32565987Sdab.Ic encrypt start input
32665987Sdabcommand.
32765987Sdab.It Ic -input
32865987SdabThis is the same as the
32965987Sdab.Ic encrypt stop input
33065987Sdabcommand.
33165987Sdab.It Ic output
33265987SdabThis is the same as the
33365987Sdab.Ic encrypt start output
33465987Sdabcommand.
33565987Sdab.It Ic -output
33665987SdabThis is the same as the
33765987Sdab.Ic encrypt stop output
33865987Sdabcommand.
33965987Sdab.It Ic start Ic [input|output]
34065987SdabAttempts to start encryption.  If you omit
34165987Sdab.Ic input
34265987Sdaband
34365987Sdab.Ic output,
34465987Sdabboth input and output are enabled.  To
34565987Sdabobtain a list of available types, use the
34665987Sdab.Ic encrypt enable \&?
34765987Sdabcommand.
34865987Sdab.It Ic status
34965987SdabLists the current status of encryption.
35065987Sdab.It Ic stop Ic [input|output]
35165987SdabStops encryption.  If you omit input and output,
35265987Sdabencryption is on both input and output.
35365987Sdab.It Ic type Ar type
35465987SdabSets the default type of encryption to be used
35565987Sdabwith later
35665987Sdab.Ic encrypt start
35765987Sdabor
35865987Sdab.Ic encrypt stop
35965987Sdabcommands.
36065987Sdab.El
36165987Sdab.It Ic environ Ar arguments...
36265987SdabThe
36365987Sdab.Ic environ
36465987Sdabcommand is used to manipulate the
36565987Sdabthe variables that my be sent through the
36665987Sdab.Dv TELNET ENVIRON
36765987Sdaboption.
36865987SdabThe initial set of variables is taken from the users
36965987Sdabenvironment, with only the
37065987Sdab.Ev DISPLAY
37165987Sdaband
37265987Sdab.Ev PRINTER
37365987Sdabvariables being exported by default.
37465987SdabThe
37565987Sdab.Ev USER
37665987Sdabvariable is also exported if the
37765987Sdab.Fl a
37865987Sdabor
37965987Sdab.Fl l
38065987Sdaboptions are used.
38165987Sdab.br
38265987SdabValid arguments for the
38365987Sdab.Ic environ
38465987Sdabcommand are:
38565987Sdab.Bl -tag -width Fl
38665987Sdab.It Ic define Ar variable value
38765987SdabDefine the variable
38865987Sdab.Ar variable
38965987Sdabto have a value of
39065987Sdab.Ar value.
39165987SdabAny variables defined by this command are automatically exported.
39265987SdabThe
39365987Sdab.Ar value
39465987Sdabmay be enclosed in single or double quotes so
39565987Sdabthat tabs and spaces may be included.
39665987Sdab.It Ic undefine Ar variable
39765987SdabRemove
39865987Sdab.Ar variable
39965987Sdabfrom the list of environment variables.
40065987Sdab.It Ic export Ar variable
40165987SdabMark the variable
40265987Sdab.Ar variable
40365987Sdabto be exported to the remote side.
40465987Sdab.It Ic unexport Ar variable
40565987SdabMark the variable
40665987Sdab.Ar variable
40765987Sdabto not be exported unless
40865987Sdabexplicitly asked for by the remote side.
40965987Sdab.It Ic list
41065987SdabList the current set of environment variables.
41165987SdabThose marked with a
41265987Sdab.Cm *
41365987Sdabwill be sent automatically,
41465987Sdabother variables will only be sent if explicitly requested.
41565987Sdab.It Ic \&?
41665987SdabPrints out help information for the
41765987Sdab.Ic environ
41865987Sdabcommand.
41965987Sdab.El
42065987Sdab.It Ic logout
42165987SdabSends the
42265987Sdab.Dv TELNET LOGOUT
42365987Sdaboption to the remote side.
42465987SdabThis command is similar to a
42565987Sdab.Ic close
42665987Sdabcommand; however, if the remote side does not support the
42765987Sdab.Dv LOGOUT
42865987Sdaboption, nothing happens.
42965987SdabIf, however, the remote side does support the
43065987Sdab.Dv LOGOUT
43165987Sdaboption, this command should cause the remote side to close the
43265987Sdab.Tn TELNET
43365987Sdabconnection.
43465987SdabIf the remote side also supports the concept of
43565987Sdabsuspending a user's session for later reattachment,
43665987Sdabthe logout argument indicates that you
43765987Sdabshould terminate the session immediately.
43850604Scael.It Ic mode Ar type
43943085Scael.Ar Type
44038711Sbormanis one of several options, depending on the state of the
44150604Scael.Tn TELNET
44238711Sbormansession.
44327692SminshallThe remote host is asked for permission to go into the requested mode.
44427692SminshallIf the remote host is capable of entering that mode, the requested
44527692Sminshallmode will be entered.
44650604Scael.Bl -tag -width Ar
44750604Scael.It Ic character
44838711SbormanDisable the
44950604Scael.Dv TELNET LINEMODE
45038711Sbormanoption, or, if the remote side does not understand the
45150604Scael.Dv LINEMODE
45243085Scaeloption, then enter \*(Lqcharacter at a time\*(Lq mode.
45350604Scael.It Ic line
45438711SbormanEnable the
45550604Scael.Dv TELNET LINEMODE
45638711Sbormanoption, or, if the remote side does not understand the
45750604Scael.Dv LINEMODE
45843085Scaeloption, then attempt to enter \*(Lqold-line-by-line\*(Lq mode.
45950604Scael.It Ic isig Pq Ic \-isig
46043085ScaelAttempt to enable (disable) the
46150604Scael.Dv TRAPSIG
46243085Scaelmode of the
46350604Scael.Dv LINEMODE
46443085Scaeloption.
46543085ScaelThis requires that the
46650604Scael.Dv LINEMODE
46743085Scaeloption be enabled.
46850604Scael.It Ic edit Pq Ic \-edit
46943085ScaelAttempt to enable (disable) the
47050604Scael.Dv EDIT
47143085Scaelmode of the
47250604Scael.Dv LINEMODE
47343085Scaeloption.
47443085ScaelThis requires that the
47550604Scael.Dv LINEMODE
47643085Scaeloption be enabled.
47750604Scael.It Ic softtabs Pq Ic \-softtabs
47845010SkarelsAttempt to enable (disable) the
47950604Scael.Dv SOFT_TAB
48045010Skarelsmode of the
48150604Scael.Dv LINEMODE
48245010Skarelsoption.
48345010SkarelsThis requires that the
48450604Scael.Dv LINEMODE
48545010Skarelsoption be enabled.
486*67354Sah.ne 1i
48750604Scael.It Ic litecho Pq Ic \-litecho
48845010SkarelsAttempt to enable (disable) the
48950604Scael.Dv LIT_ECHO
49045010Skarelsmode of the
49150604Scael.Dv LINEMODE
49245010Skarelsoption.
49345010SkarelsThis requires that the
49450604Scael.Dv LINEMODE
49545010Skarelsoption be enabled.
49650604Scael.It Ic \&?
49738711SbormanPrints out help information for the
49843085Scael.Ic mode
49938711Sbormancommand.
50050604Scael.El
50150604Scael.It Xo
50250604Scael.Ic open Ar host
50350604Scael.Oo Op Fl l
50445010Skarels.Ar user
50550604Scael.Oc Ns Oo Fl
50650604Scael.Ar port Oc
50750604Scael.Xc
50838711SbormanOpen a connection to the named host.
50938711SbormanIf no port number
51043085Scaelis specified,
51143085Scael.Nm telnet
51238711Sbormanwill attempt to contact a
51350604Scael.Tn TELNET
51438711Sbormanserver at the default port.
51543085ScaelThe host specification may be either a host name (see
51643085Scael.Xr hosts  5  )
51743085Scaelor an Internet address specified in the \*(Lqdot notation\*(Rq (see
51843085Scael.Xr inet 3 ) .
51945010SkarelsThe
52045010Skarels.Op Fl l
52145010Skarelsoption may be used to specify the user name
52245010Skarelsto be passed to the remote system via the
52350604Scael.Ev ENVIRON
52445010Skarelsoption.
52538711SbormanWhen connecting to a non-standard port,
52643085Scael.Nm telnet
52738711Sbormanomits any automatic initiation of
52850604Scael.Tn TELNET
52965987Sdaboptions.  When the port number is preceded by a minus sign,
53065987Sdabthe initial option negotiation is done.
53143085ScaelAfter establishing a connection, the file
53243085Scael.Pa \&.telnetrc
53343085Scaelin the
53465987Sdabusers home directory is opened.  Lines beginning with a # are
53538711Sbormancomment lines.  Blank lines are ignored.  Lines that begin
53665987Sdabwithout white space are the start of a machine entry.  The
53738711Sbormanfirst thing on the line is the name of the machine that is
53838711Sbormanbeing connected to.  The rest of the line, and successive
53965987Sdablines that begin with white space are assumed to be
54043085Scael.Nm telnet
54138711Sbormancommands and are processed as if they had been typed
54238711Sbormanin manually to the
54343085Scael.Nm telnet
54438711Sbormancommand prompt.
54550604Scael.It Ic quit
54638711SbormanClose any open
54750604Scael.Tn TELNET
54843085Scaelsession and exit
54943085Scael.Nm telnet  .
55038711SbormanAn end of file (in command mode) will also close a session and exit.
55150604Scael.It Ic send Ar arguments
55227692SminshallSends one or more special character sequences to the remote host.
55327692SminshallThe following are the arguments which may be specified
55427692Sminshall(more than one argument may be specified at a time):
55543085Scael.Pp
55650604Scael.Bl -tag -width escape
55750604Scael.It Ic abort
55827692SminshallSends the
55950604Scael.Dv TELNET ABORT
56050604Scael(Abort
56150604Scaelprocesses)
56227692Sminshallsequence.
56350604Scael.It Ic ao
56427692SminshallSends the
56550604Scael.Dv TELNET AO
56627692Sminshall(Abort Output) sequence, which should cause the remote system to flush
56727692Sminshallall output
56843085Scael.Em from
56927692Sminshallthe remote system
57043085Scael.Em to
57127692Sminshallthe user's terminal.
57250604Scael.It Ic ayt
57327692SminshallSends the
57450604Scael.Dv TELNET AYT
57527692Sminshall(Are You There)
57627894Skarelssequence, to which the remote system may or may not choose to respond.
57750604Scael.It Ic brk
57827692SminshallSends the
57950604Scael.Dv TELNET BRK
58038711Sborman(Break) sequence, which may have significance to the remote
58138711Sbormansystem.
58250604Scael.It Ic ec
58338711SbormanSends the
58450604Scael.Dv TELNET EC
58527692Sminshall(Erase Character)
58627692Sminshallsequence, which should cause the remote system to erase the last character
58727692Sminshallentered.
58850604Scael.It Ic el
58927692SminshallSends the
59050604Scael.Dv TELNET EL
59127692Sminshall(Erase Line)
59227692Sminshallsequence, which should cause the remote system to erase the line currently
59327692Sminshallbeing entered.
59450604Scael.It Ic eof
59527692SminshallSends the
59650604Scael.Dv TELNET EOF
59738711Sborman(End Of File)
59838711Sbormansequence.
59950604Scael.It Ic eor
60038711SbormanSends the
60150604Scael.Dv TELNET EOR
60238711Sborman(End of Record)
60338711Sbormansequence.
60450604Scael.It Ic escape
60538711SbormanSends the current
60643085Scael.Nm telnet
60743085Scaelescape character (initially \*(Lq^\*(Rq).
60850604Scael.It Ic ga
60938711SbormanSends the
61050604Scael.Dv TELNET GA
61127692Sminshall(Go Ahead)
61227692Sminshallsequence, which likely has no significance to the remote system.
61350604Scael.It Ic getstatus
61438910SbormanIf the remote side supports the
61550604Scael.Dv TELNET STATUS
61638910Sbormancommand,
61743085Scael.Ic getstatus
61838910Sbormanwill send the subnegotiation to request that the server send
61938910Sbormanits current option status.
620*67354Sah.ne 1i
62150604Scael.It Ic ip
62227692SminshallSends the
62350604Scael.Dv TELNET IP
62438711Sborman(Interrupt Process) sequence, which should cause the remote
62538711Sbormansystem to abort the currently running process.
62650604Scael.It Ic nop
62738711SbormanSends the
62850604Scael.Dv TELNET NOP
62927692Sminshall(No OPeration)
63027692Sminshallsequence.
63150604Scael.It Ic susp
63238711SbormanSends the
63350604Scael.Dv TELNET SUSP
63438711Sborman(SUSPend process)
63538711Sbormansequence.
63650604Scael.It Ic synch
63738711SbormanSends the
63850604Scael.Dv TELNET SYNCH
63938711Sbormansequence.
64038711SbormanThis sequence causes the remote system to discard all previously typed
64138711Sborman(but not yet read) input.
64250604ScaelThis sequence is sent as
64350604Scael.Tn TCP
64450604Scaelurgent
64550604Scaeldata (and may not work if the remote system is a
64650604Scael.Bx 4.2
64750604Scaelsystem -- if
64843085Scaelit doesn't work, a lower case \*(Lqr\*(Rq may be echoed on the terminal).
64965987Sdab.It Ic do Ar cmd
65065987Sdab.It Ic dont Ar cmd
65165987Sdab.It Ic will Ar cmd
65265987Sdab.It Ic wont Ar cmd
65365987SdabSends the
65465987Sdab.Dv TELNET DO
65565987Sdab.Ar cmd
65665987Sdabsequence.
65765987Sdab.Ar Cmd
65865987Sdabcan be either a decimal number between 0 and 255,
65965987Sdabor a symbolic name for a specific
66065987Sdab.Dv TELNET
66165987Sdabcommand.
66265987Sdab.Ar Cmd
66365987Sdabcan also be either
66465987Sdab.Ic help
66565987Sdabor
66665987Sdab.Ic \&?
66765987Sdabto print out help information, including
66865987Sdaba list of known symbolic names.
66950604Scael.It Ic \&?
67027692SminshallPrints out help information for the
67143085Scael.Ic send
67227692Sminshallcommand.
67350604Scael.El
67450604Scael.It Ic set Ar argument value
67550604Scael.It Ic unset Ar argument value
67638711SbormanThe
67743085Scael.Ic set
67838711Sbormancommand will set any one of a number of
67943085Scael.Nm telnet
68050604Scaelvariables to a specific value or to
68150604Scael.Dv TRUE .
68243085ScaelThe special value
68343085Scael.Ic off
68443085Scaelturns off the function associated with
68538711Sbormanthe variable, this is equivalent to using the
68643085Scael.Ic unset
68738711Sbormancommand.
68838711SbormanThe
68943085Scael.Ic unset
69050604Scaelcommand will disable or set to
69150604Scael.Dv FALSE
69250604Scaelany of the specified functions.
69327894SkarelsThe values of variables may be interrogated with the
69443085Scael.Ic display
69527894Skarelscommand.
69638711SbormanThe variables which may be set or unset, but not toggled, are
69738711Sbormanlisted here.  In addition, any of the variables for the
69843085Scael.Ic toggle
69943085Scaelcommand may be explicitly set or unset using
70043085Scaelthe
70143085Scael.Ic set
70243085Scaeland
70343085Scael.Ic unset
70443085Scaelcommands.
70550604Scael.Bl -tag -width escape
70665987Sdab.It Ic ayt
70765987SdabIf
70865987Sdab.Tn TELNET
70965987Sdabis in localchars mode, or
71065987Sdab.Dv LINEMODE
71165987Sdabis enabled, and the status character is typed, a
71265987Sdab.Dv TELNET AYT
71365987Sdabsequence (see
71465987Sdab.Ic send ayt
71565987Sdabpreceding) is sent to the
71665987Sdabremote host.  The initial value for the "Are You There"
71765987Sdabcharacter is the terminal's status character.
71850604Scael.It Ic echo
71943085ScaelThis is the value (initially \*(Lq^E\*(Rq) which, when in
72043085Scael\*(Lqline by line\*(Rq mode, toggles between doing local echoing
72127692Sminshallof entered characters (for normal processing), and suppressing
72227692Sminshallechoing of entered characters (for entering, say, a password).
72350604Scael.It Ic eof
72438711SbormanIf
72543085Scael.Nm telnet
72638711Sbormanis operating in
72750604Scael.Dv LINEMODE
72843085Scaelor \*(Lqold line by line\*(Rq mode, entering this character
72938711Sbormanas the first character on a line will cause this character to be
73038711Sbormansent to the remote system.
73138711SbormanThe initial value of the eof character is taken to be the terminal's
73243085Scael.Ic eof
73338711Sbormancharacter.
73450604Scael.It Ic erase
73527692SminshallIf
73643085Scael.Nm telnet
73727692Sminshallis in
73843085Scael.Ic localchars
73927692Sminshallmode (see
74043085Scael.Ic toggle
74143085Scael.Ic localchars
74238711Sbormanbelow),
74343085Scael.Sy and
74438711Sbormanif
74543085Scael.Nm telnet
74643085Scaelis operating in \*(Lqcharacter at a time\*(Rq mode, then when this
74727692Sminshallcharacter is typed, a
74850604Scael.Dv TELNET EC
74927692Sminshallsequence (see
75043085Scael.Ic send
75143085Scael.Ic ec
75227692Sminshallabove)
75338711Sbormanis sent to the remote system.
75438711SbormanThe initial value for the erase character is taken to be
75527692Sminshallthe terminal's
75643085Scael.Ic erase
75727692Sminshallcharacter.
75850604Scael.It Ic escape
75938711SbormanThis is the
76043085Scael.Nm telnet
76143085Scaelescape character (initially \*(Lq^[\*(Rq) which causes entry
76238711Sbormaninto
76343085Scael.Nm telnet
76438711Sbormancommand mode (when connected to a remote system).
76550604Scael.It Ic flushoutput
76627692SminshallIf
76743085Scael.Nm telnet
76827692Sminshallis in
76943085Scael.Ic localchars
77027692Sminshallmode (see
77143085Scael.Ic toggle
77243085Scael.Ic localchars
77327692Sminshallbelow)
77427692Sminshalland the
77543085Scael.Ic flushoutput
77627692Sminshallcharacter is typed, a
77750604Scael.Dv TELNET AO
77827692Sminshallsequence (see
77943085Scael.Ic send
78043085Scael.Ic ao
78127692Sminshallabove)
78227692Sminshallis sent to the remote host.
78338711SbormanThe initial value for the flush character is taken to be
78427692Sminshallthe terminal's
78543085Scael.Ic flush
78627692Sminshallcharacter.
78765987Sdab.It Ic forw1
78865987Sdab.It Ic forw2
78965987SdabIf
79065987Sdab.Tn TELNET
79165987Sdabis operating in
79265987Sdab.Dv LINEMODE ,
79365987Sdabthese are the
79465987Sdabcharacters that, when typed, cause partial lines to be
79565987Sdabforwarded to the remote system.  The initial value for
79665987Sdabthe forwarding characters are taken from the terminal's
79765987Sdabeol and eol2 characters.
79850604Scael.It Ic interrupt
79927692SminshallIf
80043085Scael.Nm telnet
80127692Sminshallis in
80243085Scael.Ic localchars
80327692Sminshallmode (see
80443085Scael.Ic toggle
80543085Scael.Ic localchars
80627692Sminshallbelow)
80727692Sminshalland the
80843085Scael.Ic interrupt
80927692Sminshallcharacter is typed, a
81050604Scael.Dv TELNET IP
81127692Sminshallsequence (see
81243085Scael.Ic send
81343085Scael.Ic ip
81427692Sminshallabove)
81527692Sminshallis sent to the remote host.
81638711SbormanThe initial value for the interrupt character is taken to be
81727692Sminshallthe terminal's
81843085Scael.Ic intr
81927692Sminshallcharacter.
82050604Scael.It Ic kill
82127692SminshallIf
82243085Scael.Nm telnet
82327692Sminshallis in
82443085Scael.Ic localchars
82527692Sminshallmode (see
82643085Scael.Ic toggle
82743085Scael.Ic localchars
82827692Sminshallbelow),
82943085Scael.Ic and
83027692Sminshallif
83143085Scael.Nm telnet
83243085Scaelis operating in \*(Lqcharacter at a time\*(Rq mode, then when this
83327692Sminshallcharacter is typed, a
83450604Scael.Dv TELNET EL
83527692Sminshallsequence (see
83643085Scael.Ic send
83743085Scael.Ic el
83827692Sminshallabove)
83927692Sminshallis sent to the remote system.
84038711SbormanThe initial value for the kill character is taken to be
84127692Sminshallthe terminal's
84243085Scael.Ic kill
84327692Sminshallcharacter.
84450604Scael.It Ic lnext
84527692SminshallIf
84643085Scael.Nm telnet
84738711Sbormanis operating in
84850604Scael.Dv LINEMODE
84943085Scaelor \*(Lqold line by line\*(Lq mode, then this character is taken to
85038711Sbormanbe the terminal's
85143085Scael.Ic lnext
85238711Sbormancharacter.
85338711SbormanThe initial value for the lnext character is taken to be
85438711Sbormanthe terminal's
85543085Scael.Ic lnext
85638711Sbormancharacter.
85750604Scael.It Ic quit
85838711SbormanIf
85943085Scael.Nm telnet
86027692Sminshallis in
86143085Scael.Ic localchars
86227692Sminshallmode (see
86343085Scael.Ic toggle
86443085Scael.Ic localchars
86538711Sbormanbelow)
86638711Sbormanand the
86743085Scael.Ic quit
86827692Sminshallcharacter is typed, a
86950604Scael.Dv TELNET BRK
87027692Sminshallsequence (see
87143085Scael.Ic send
87243085Scael.Ic brk
87327692Sminshallabove)
87438711Sbormanis sent to the remote host.
87538711SbormanThe initial value for the quit character is taken to be
87638711Sbormanthe terminal's
87743085Scael.Ic quit
87838711Sbormancharacter.
87950604Scael.It Ic reprint
88038711SbormanIf
88143085Scael.Nm telnet
88238711Sbormanis operating in
88350604Scael.Dv LINEMODE
88443085Scaelor \*(Lqold line by line\*(Lq mode, then this character is taken to
88538711Sbormanbe the terminal's
88643085Scael.Ic reprint
88738711Sbormancharacter.
88838711SbormanThe initial value for the reprint character is taken to be
88938711Sbormanthe terminal's
89043085Scael.Ic reprint
89138711Sbormancharacter.
89265987Sdab.It Ic rlogin
89365987SdabThis is the rlogin escape character.
89465987SdabIf set, the normal
89565987Sdab.Tn TELNET
89665987Sdabescape character is ignored unless it is
89765987Sdabpreceded by this character at the beginning of a line.
89865987SdabThis character, at the beginning of a line followed by
89965987Sdaba "."  closes the connection; when followed by a ^Z it
90065987Sdabsuspends the telnet command.  The initial state is to
90165987Sdabdisable the rlogin escape character.
90250604Scael.It Ic start
90338711SbormanIf the
90450604Scael.Dv TELNET TOGGLE-FLOW-CONTROL
90538711Sbormanoption has been enabled,
90638711Sbormanthen this character is taken to
90738711Sbormanbe the terminal's
90843085Scael.Ic start
90938711Sbormancharacter.
91027692SminshallThe initial value for the kill character is taken to be
91127692Sminshallthe terminal's
91243085Scael.Ic start
91327692Sminshallcharacter.
91450604Scael.It Ic stop
91538711SbormanIf the
91650604Scael.Dv TELNET TOGGLE-FLOW-CONTROL
91738711Sbormanoption has been enabled,
91838711Sbormanthen this character is taken to
91938711Sbormanbe the terminal's
92043085Scael.Ic stop
92138711Sbormancharacter.
92238711SbormanThe initial value for the kill character is taken to be
92338711Sbormanthe terminal's
92443085Scael.Ic stop
92538711Sbormancharacter.
92650604Scael.It Ic susp
92727692SminshallIf
92843085Scael.Nm telnet
92938711Sbormanis in
93043085Scael.Ic localchars
93138711Sbormanmode, or
93250604Scael.Dv LINEMODE
93338711Sbormanis enabled, and the
93443085Scael.Ic suspend
93538711Sbormancharacter is typed, a
93650604Scael.Dv TELNET SUSP
93738711Sbormansequence (see
93843085Scael.Ic send
93943085Scael.Ic susp
94038711Sbormanabove)
94138711Sbormanis sent to the remote host.
94238711SbormanThe initial value for the suspend character is taken to be
94338711Sbormanthe terminal's
94443085Scael.Ic suspend
94527692Sminshallcharacter.
946*67354Sah.ne 1i
94750604Scael.It Ic tracefile
94865227SmckusickThis is the file to which the output, caused by
94943085Scael.Ic netdata
95043085Scaelor
95143085Scael.Ic option
95250604Scaeltracing being
95350604Scael.Dv TRUE ,
95450604Scaelwill be written.  If it is set to
95543085Scael.Dq Fl ,
95638711Sbormanthen tracing information will be written to standard output (the default).
95750604Scael.It Ic worderase
95838711SbormanIf
95943085Scael.Nm telnet
96038711Sbormanis operating in
96150604Scael.Dv LINEMODE
96243085Scaelor \*(Lqold line by line\*(Lq mode, then this character is taken to
96338711Sbormanbe the terminal's
96443085Scael.Ic worderase
96538711Sbormancharacter.
96638711SbormanThe initial value for the worderase character is taken to be
96738711Sbormanthe terminal's
96843085Scael.Ic worderase
96938711Sbormancharacter.
97050604Scael.It Ic \&?
97145010SkarelsDisplays the legal
97245010Skarels.Ic set
97345010Skarels.Pq Ic unset
97445010Skarelscommands.
97550604Scael.El
97650604Scael.It Ic slc Ar state
97738711SbormanThe
97843085Scael.Ic slc
97938711Sbormancommand (Set Local Characters) is used to set
98065987Sdabor change the state of the the special
98143085Scaelcharacters when the
98250604Scael.Dv TELNET LINEMODE
98343085Scaeloption has
98438711Sbormanbeen enabled.  Special characters are characters that get
98543085Scaelmapped to
98650604Scael.Tn TELNET
98743085Scaelcommands sequences (like
98843085Scael.Ic ip
98938711Sbormanor
99043085Scael.Ic quit  )
99138711Sbormanor line editing characters (like
99243085Scael.Ic erase
99338711Sbormanand
99443085Scael.Ic kill  ) .
99538711SbormanBy default, the local special characters are exported.
99650604Scael.Bl -tag -width Fl
99765987Sdab.It Ic check
99865987SdabVerify the current settings for the current special characters.
99965987SdabThe remote side is requested to send all the current special
100065987Sdabcharacter settings, and if there are any discrepancies with
100165987Sdabthe local side, the local side will switch to the remote value.
100250604Scael.It Ic export
100338711SbormanSwitch to the local defaults for the special characters.  The
100438711Sbormanlocal default characters are those of the local terminal at
100538711Sbormanthe time when
100643085Scael.Nm telnet
100738711Sbormanwas started.
100850604Scael.It Ic import
100938711SbormanSwitch to the remote defaults for the special characters.
101038711SbormanThe remote default characters are those of the remote system
101143085Scaelat the time when the
101250604Scael.Tn TELNET
101343085Scaelconnection was established.
101450604Scael.It Ic \&?
101538711SbormanPrints out help information for the
101643085Scael.Ic slc
101738711Sbormancommand.
101850604Scael.El
101965987Sdab.It Ic status
102065987SdabShow the current status of
102165987Sdab.Nm telnet  .
102265987SdabThis includes the peer one is connected to, as well
102365987Sdabas the current mode.
102450604Scael.It Ic toggle Ar arguments ...
102527692SminshallToggle (between
102650604Scael.Dv TRUE
102727692Sminshalland
102850604Scael.Dv FALSE )
102927692Sminshallvarious flags that control how
103043085Scael.Nm telnet
103127692Sminshallresponds to events.
103250604ScaelThese flags may be set explicitly to
103350604Scael.Dv TRUE
103450604Scaelor
103550604Scael.Dv FALSE
103638711Sbormanusing the
103743085Scael.Ic set
103838711Sbormanand
103943085Scael.Ic unset
104038711Sbormancommands listed above.
104127692SminshallMore than one argument may be specified.
104227894SkarelsThe state of these flags may be interrogated with the
104343085Scael.Ic display
104427894Skarelscommand.
104527692SminshallValid arguments are:
104650604Scael.Bl -tag -width Ar
104765987Sdab.It Ic authdebug
104865987SdabTurns on debugging information for the authentication code.
104950604Scael.It Ic autoflush
105027692SminshallIf
105143085Scael.Ic autoflush
105227692Sminshalland
105343085Scael.Ic localchars
105427692Sminshallare both
105550604Scael.Dv TRUE ,
105627692Sminshallthen when the
105743085Scael.Ic ao  ,
105827692Sminshallor
105943085Scael.Ic quit
106027692Sminshallcharacters are recognized (and transformed into
106150604Scael.Tn TELNET
106227692Sminshallsequences; see
106343085Scael.Ic set
106427692Sminshallabove for details),
106543085Scael.Nm telnet
106627692Sminshallrefuses to display any data on the user's terminal
106727692Sminshalluntil the remote system acknowledges (via a
106850604Scael.Dv TELNET TIMING MARK
106927692Sminshalloption)
107027692Sminshallthat it has processed those
107150604Scael.Tn TELNET
107227692Sminshallsequences.
107350604ScaelThe initial value for this toggle is
107450604Scael.Dv TRUE
107550604Scaelif the terminal user had not
107650604Scaeldone an "stty noflsh", otherwise
107750604Scael.Dv FALSE
107850604Scael(see
107943085Scael.Xr stty  1  ) .
108065987Sdab.It Ic autodecrypt
108165987SdabWhen the
108265987Sdab.Dv TELNET ENCRYPT
108365987Sdaboption is negotiated, by
108465987Sdabdefault the actual encryption (decryption) of the data
108565987Sdabstream does not start automatically.  The autoencrypt
108665987Sdab(autodecrypt) command states that encryption of the
108765987Sdaboutput (input) stream should be enabled as soon as
108865987Sdabpossible.
1089*67354Sah.sp
109065987Sdab.Pp
109165987SdabNote:  Because of export controls, the
109265987Sdab.Dv TELNET ENCRYPT
109365987Sdaboption is not supported outside the United States and Canada.
109465987Sdab.It Ic autologin
109565987SdabIf the remote side supports the
109665987Sdab.Dv TELNET AUTHENTICATION
109765987Sdaboption
109865987Sdab.Tn TELNET
109965987Sdabattempts to use it to perform automatic authentication.  If the
110065987Sdab.Dv AUTHENTICATION
110165987Sdaboption is not supported, the user's login
110265987Sdabname are propagated through the
110365987Sdab.Dv TELNET ENVIRON
110465987Sdaboption.
110565987SdabThis command is the same as specifying
110665987Sdab.Ar a
110765987Sdaboption on the
110865987Sdab.Ic open
110965987Sdabcommand.
111050604Scael.It Ic autosynch
111127894SkarelsIf
111243085Scael.Ic autosynch
111327894Skarelsand
111443085Scael.Ic localchars
111527894Skarelsare both
111650604Scael.Dv TRUE ,
111727894Skarelsthen when either the
111843085Scael.Ic intr
111927894Skarelsor
112043085Scael.Ic quit
112127894Skarelscharacters is typed (see
112243085Scael.Ic set
112327894Skarelsabove for descriptions of the
112443085Scael.Ic intr
112527894Skarelsand
112643085Scael.Ic quit
112727894Skarelscharacters), the resulting
112850604Scael.Tn TELNET
112927894Skarelssequence sent is followed by the
113050604Scael.Dv TELNET SYNCH
113127894Skarelssequence.
113227894SkarelsThis procedure
113343085Scael.Ic should
113427894Skarelscause the remote system to begin throwing away all previously
113527894Skarelstyped input until both of the
113650604Scael.Tn TELNET
113727894Skarelssequences have been read and acted upon.
113850604ScaelThe initial value of this toggle is
113950604Scael.Dv FALSE .
114050604Scael.It Ic binary
114138711SbormanEnable or disable the
114250604Scael.Dv TELNET BINARY
114338910Sbormanoption on both input and output.
114450604Scael.It Ic inbinary
114538910SbormanEnable or disable the
114650604Scael.Dv TELNET BINARY
114738910Sbormanoption on input.
114850604Scael.It Ic outbinary
114938910SbormanEnable or disable the
115050604Scael.Dv TELNET BINARY
115138910Sbormanoption on output.
115250604Scael.It Ic crlf
115350604ScaelIf this is
115450604Scael.Dv TRUE ,
115550604Scaelthen carriage returns will be sent as
115650604Scael.Li <CR><LF> .
115750604ScaelIf this is
115850604Scael.Dv FALSE ,
115950604Scaelthen carriage returns will be send as
116050604Scael.Li <CR><NUL> .
116150604ScaelThe initial value for this toggle is
116250604Scael.Dv FALSE .
116350604Scael.It Ic crmod
116427692SminshallToggle carriage return mode.
116527692SminshallWhen this mode is enabled, most carriage return characters received from
116627692Sminshallthe remote host will be mapped into a carriage return followed by
116727692Sminshalla line feed.
116827692SminshallThis mode does not affect those characters typed by the user, only
116927692Sminshallthose received from the remote host.
117027692SminshallThis mode is not very useful unless the remote host
117127692Sminshallonly sends carriage return, but never line feed.
117250604ScaelThe initial value for this toggle is
117350604Scael.Dv FALSE .
117450604Scael.It Ic debug
117527692SminshallToggles socket level debugging (useful only to the
117643085Scael.Ic super user  ) .
117750604ScaelThe initial value for this toggle is
117850604Scael.Dv FALSE .
117965987Sdab.It Ic encdebug
118065987SdabTurns on debugging information for the encryption code.
118150604Scael.It Ic localchars
118238711SbormanIf this is
118350604Scael.Dv TRUE ,
118438711Sbormanthen the
118543085Scael.Ic flush  ,
118645010Skarels.Ic interrupt ,
118743085Scael.Ic quit  ,
118845010Skarels.Ic erase ,
118938711Sbormanand
119043085Scael.Ic kill
119138711Sbormancharacters (see
119243085Scael.Ic set
119338711Sbormanabove) are recognized locally, and transformed into (hopefully) appropriate
119450604Scael.Tn TELNET
119538711Sbormancontrol sequences
119638711Sborman(respectively
119743085Scael.Ic ao  ,
119845010Skarels.Ic ip ,
119943085Scael.Ic brk  ,
120045010Skarels.Ic ec ,
120138711Sbormanand
120243085Scael.Ic el  ;
120338711Sbormansee
120443085Scael.Ic send
120538711Sbormanabove).
120650604ScaelThe initial value for this toggle is
120750604Scael.Dv TRUE
120850604Scaelin \*(Lqold line by line\*(Rq mode,
120950604Scaeland
121050604Scael.Dv FALSE
121150604Scaelin \*(Lqcharacter at a time\*(Rq mode.
121238711SbormanWhen the
121350604Scael.Dv LINEMODE
121438711Sbormanoption is enabled, the value of
121543085Scael.Ic localchars
121650604Scaelis ignored, and assumed to always be
121750604Scael.Dv TRUE .
121838711SbormanIf
121950604Scael.Dv LINEMODE
122038711Sbormanhas ever been enabled, then
122143085Scael.Ic quit
122238711Sbormanis sent as
122343085Scael.Ic abort  ,
122438711Sbormanand
122543085Scael.Ic eof and
122638711Sborman.B suspend
122738711Sbormanare sent as
122843085Scael.Ic eof and
122945010Skarels.Ic susp ,
123038711Sbormansee
123143085Scael.Ic send
123238711Sbormanabove).
123350604Scael.It Ic netdata
123438711SbormanToggles the display of all network data (in hexadecimal format).
123550604ScaelThe initial value for this toggle is
123650604Scael.Dv FALSE .
123750604Scael.It Ic options
123827692SminshallToggles the display of some internal
123943085Scael.Nm telnet
124027692Sminshallprotocol processing (having to do with
124150604Scael.Tn TELNET
124227692Sminshalloptions).
124350604ScaelThe initial value for this toggle is
124450604Scael.Dv FALSE .
1245*67354Sah.ne 1i
124650604Scael.It Ic prettydump
124738711SbormanWhen the
124843085Scael.Ic netdata
124938711Sbormantoggle is enabled, if
125043085Scael.Ic prettydump
125138711Sbormanis enabled the output from the
125243085Scael.Ic netdata
125365987Sdabcommand will be formatted in a more user readable format.
125438711SbormanSpaces are put between each character in the output, and the
125565987Sdabbeginning of any
125650604Scael.Tn TELNET
125765987Sdabescape sequence is preceded by a '*' to aid in locating them.
125865987Sdab.It Ic skiprc
125965987SdabWhen the skiprc toggle is
126065987Sdab.Dv TRUE ,
126165987Sdab.Tn TELNET
126265987Sdabskips the reading of the
126365987Sdab.Pa \&.telnetrc
126465987Sdabfile in the users home
126565987Sdabdirectory when connections are opened.  The initial
126665987Sdabvalue for this toggle is
126765987Sdab.Dv FALSE.
126865987Sdab.It Ic termdata
126965987SdabToggles the display of all terminal data (in hexadecimal format).
127065987SdabThe initial value for this toggle is
127165987Sdab.Dv FALSE .
127265987Sdab.It Ic verbose_encrypt
127365987SdabWhen the
127465987Sdab.Ic verbose_encrypt
127565987Sdabtoggle is
127665987Sdab.Dv TRUE ,
127765987Sdab.Tn TELNET
127865987Sdabprints out a message each time encryption is enabled or
127965987Sdabdisabled.  The initial value for this toggle is
128065987Sdab.Dv FALSE.
128165987SdabNote:  Because of export controls, data encryption
128265987Sdabis not supported outside of the United States and Canada.
128350604Scael.It Ic \&?
128427692SminshallDisplays the legal
128543085Scael.Ic toggle
128627692Sminshallcommands.
128750604Scael.El
128850604Scael.It Ic z
128938711SbormanSuspend
129043085Scael.Nm telnet  .
129143085ScaelThis command only works when the user is using the
129243085Scael.Xr csh  1  .
129350604Scael.It Ic \&! Op Ar command
129438711SbormanExecute a single command in a subshell on the local
129543085Scaelsystem.  If
129643085Scael.Ic command
129765987Sdabis omitted, then an interactive
129838711Sbormansubshell is invoked.
129950604Scael.It Ic \&? Op Ar command
130038711SbormanGet help.  With no arguments,
130143085Scael.Nm telnet
130238711Sbormanprints a help summary.
130343085ScaelIf a command is specified,
130443085Scael.Nm telnet
130538711Sbormanwill print the help information for just that command.
130650604Scael.El
130743085Scael.Sh ENVIRONMENT
130843085Scael.Nm Telnet
130945010Skarelsuses at least the
131043085Scael.Ev HOME ,
131145010Skarels.Ev SHELL ,
131245010Skarels.Ev DISPLAY ,
131343085Scaeland
131443085Scael.Ev TERM
131565227Smckusickenvironment variables.
131665227SmckusickOther environment variables may be propagated
131745010Skarelsto the other side via the
131850604Scael.Dv TELNET ENVIRON
131945010Skarelsoption.
132043085Scael.Sh FILES
132150604Scael.Bl -tag -width ~/.telnetrc -compact
132250604Scael.It Pa ~/.telnetrc
132343085Scaeluser customized telnet startup values
132450604Scael.El
132543085Scael.Sh HISTORY
132650604ScaelThe
132743085Scael.Nm Telnet
132850604Scaelcommand appeared in
132950604Scael.Bx 4.2 .
133043085Scael.Sh NOTES
133143085Scael.Pp
133227692SminshallOn some remote systems, echo has to be turned off manually when in
133343085Scael\*(Lqold line by line\*(Rq mode.
133443085Scael.Pp
133543085ScaelIn \*(Lqold line by line\*(Rq mode or
133650604Scael.Dv LINEMODE
133743085Scaelthe terminal's
133843085Scael.Ic eof
133927692Sminshallcharacter is only recognized (and sent to the remote system)
134027692Sminshallwhen it is the first character on a line.
1341