1 .\" Copyright (c) 1983 Regents of the University of California.
2 .\" All rights reserved. The Berkeley software License Agreement
3 .\" specifies the terms and conditions for redistribution.
5 .\" @(#)telnet.1c 6.5 (Berkeley) 5/10/86
7 .TH TELNET 1 "May 10, 1986"
10 telnet \- user interface to the \s-1TELNET\s0 protocol
19 is used to communicate with another host using the
24 is invoked without arguments, it enters command mode,
25 indicated by its prompt (\*(lqtelnet>\*(rq).
26 In this mode, it accepts and executes the commands listed below.
27 If it is invoked with arguments, it performs an
29 command (see below) with those arguments.
31 Once a connection has been opened,
34 The input mode entered will be either \*(lqcharacter at a time\*(rq
35 or \*(lqline by line\*(rq
36 depending on what the remote system supports.
38 In \*(lqcharacter at a time\*(rq mode, most
39 text typed is immediately sent to the remote host for processing.
41 In \*(lqline by line\*(rq mode, all text is echoed locally,
42 and (normally) only completed lines are sent to the remote host.
43 The \*(lqlocal echo character\*(rq (initially \*(lq^E\*(rq) may be used
44 to turn off and on the local echo
45 (this would mostly be used to enter passwords
46 without the password being echoed).
48 In either mode, if the
50 toggle is TRUE (the default in line mode; see below),
56 characters are trapped locally, and sent as
58 protocol sequences to the remote side.
59 There are options (see
66 which cause this action to flush subsequent output to the terminal
67 (until the remote host acknowledges the
69 sequence) and flush previous terminal input
75 While connected to a remote host,
77 command mode may be entered by typing the
79 \*(lqescape character\*(rq (initially \*(lq^]\*(rq).
80 When in command mode, the normal terminal editing conventions are available.
84 The following commands are available.
85 Only enough of each command to uniquely identify it need be typed
86 (this is also true for arguments to the
95 .B open \fIhost\fP \fR[\fP \fIport\fP \fR]\fP
97 Open a connection to the named host.
101 will attempt to contact a
103 server at the default port.
104 The host specification may be either a host name (see
106 or an Internet address specified in the \*(lqdot notation\*(rq (see
113 session and return to command mode.
121 An end of file (in command mode) will also close a session and exit.
127 This command only works when the user is using the
135 (for \*(lqline by line\*(rq mode)
138 (for \*(lqcharacter at a time\*(rq mode).
139 The remote host is asked for permission to go into the requested mode.
140 If the remote host is capable of entering that mode, the requested
141 mode will be entered.
145 Show the current status of
147 This includes the peer one is connected to, as well
150 .B display \fR[\fP \fIargument...\fP \fR]\fP
152 Displays all, or some, of the
158 .B ? \fR[\fP \fIcommand\fP \fR]\fP
160 Get help. With no arguments,
162 prints a help summary.
163 If a command is specified,
165 will print the help information for just that command.
167 .B send \fIarguments\fP
169 Sends one or more special character sequences to the remote host.
170 The following are the arguments which may be specified
171 (more than one argument may be specified at a time):
178 escape character (initially \*(lq^]\*(rq).
185 This sequence causes the remote system to discard all previously typed
186 (but not yet read) input.
187 This sequence is sent as TCP urgent
188 data (and may not work if the remote system is a 4.2 BSD system -- if
189 it doesn't work, a lower case \*(lqr\*(rq may be echoed on the terminal).
195 (Break) sequence, which may have significance to the remote
202 (Interrupt Process) sequence, which should cause the remote
203 system to abort the currently running process.
209 (Abort Output) sequence, which should cause the remote system to flush
221 sequence, to which the remote system may or may not choose to respond.
228 sequence, which should cause the remote system to erase the last character
236 sequence, which should cause the remote system to erase the line currently
244 sequence, which likely has no significance to the remote system.
255 Prints out help information for the
260 .B set \fIargument value\fP
262 Set any one of a number of
264 variables to a specific value.
265 The special value \*(lqoff\*(rq turns off the function associated with
267 The values of variables may be interrogated with the
270 The variables which may be specified are:
275 This is the value (initially \*(lq^E\*(rq) which, when in
276 \*(lqline by line\*(rq mode, toggles between doing local echoing
277 of entered characters (for normal processing), and suppressing
278 echoing of entered characters (for entering, say, a password).
284 escape character (initially \*(lq^[\*(rq) which causes entry
287 command mode (when connected to a remote system).
301 character is typed, a
307 is sent to the remote host.
308 The initial value for the interrupt character is taken to be
325 character is typed, a
331 is sent to the remote host.
332 The initial value for the quit character is taken to be
349 character is typed, a
355 is sent to the remote host.
356 The initial value for the flush character is taken to be
374 is operating in \*(lqcharacter at a time\*(rq mode, then when this
375 character is typed, a
381 is sent to the remote system.
382 The initial value for the erase character is taken to be
400 is operating in \*(lqcharacter at a time\*(rq mode, then when this
401 character is typed, a
407 is sent to the remote system.
408 The initial value for the kill character is taken to be
417 is operating in \*(lqline by line\*(rq mode, entering this character
418 as the first character on a line will cause this character to be
419 sent to the remote system.
420 The initial value of the eof character is taken to be the terminal's
425 .B toggle \fIarguments...\fP
431 various flags that control how
434 More than one argument may be specified.
435 The state of these flags may be interrogated with the
454 above) are recognized locally, and transformed into (hopefully) appropriate
467 The initial value for this toggle is TRUE in \*(lqline by line\*(rq mode,
468 and FALSE in \*(lqcharacter at a time\*(rq mode.
483 characters are recognized (and transformed into
489 refuses to display any data on the user's terminal
490 until the remote system acknowledges (via a
494 that it has processed those
497 The initial value for this toggle is TRUE if the terminal user had not
498 done an "stty noflsh", otherwise FALSE (see
512 characters is typed (see
514 above for descriptions of the
518 characters), the resulting
520 sequence sent is followed by the
525 cause the remote system to begin throwing away all previously
526 typed input until both of the
528 sequences have been read and acted upon.
529 The initial value of this toggle is FALSE.
533 Toggle carriage return mode.
534 When this mode is enabled, most carriage return characters received from
535 the remote host will be mapped into a carriage return followed by
537 This mode does not affect those characters typed by the user, only
538 those received from the remote host.
539 This mode is not very useful unless the remote host
540 only sends carriage return, but never line feed.
541 The initial value for this toggle is FALSE.
545 Toggles socket level debugging (useful only to the
547 The initial value for this toggle is FALSE.
551 Toggles the display of some internal
553 protocol processing (having to do with
556 The initial value for this toggle is FALSE.
560 Toggles the display of all network data (in hexadecimal format).
561 The initial value for this toggle is FALSE.
571 There is no adequate way for dealing with flow control.
573 On some remote systems, echo has to be turned off manually when in
574 \*(lqline by line\*(rq mode.
576 There is enough settable state to justify a
584 In \*(lqline by line\*(rq mode, the terminal's
586 character is only recognized (and sent to the remote system)
587 when it is the first character on a line.