() (****************************************************************) () (Copyright (c) 1992, Carnegie Mellon University) () (All Rights Reserved) () (Permission is hereby granted to use, copy, modify, and) (distribute this software provided that the above copyright) (notice appears in all copies and that any distribution be for) (noncommercial purposes.) () (Carnegie Mellon University disclaims all warranties with regard) (to this software. In no event shall Carnegie Mellon University) (be liable for any special, indirect, or consequential damages) (or any damages whatsoever resulting from loss of use, data, or) (profits arising out of or in connection with the use or) (performance of this software.) () (****************************************************************) () (This file processed with symbol generator: 27-MAY-1991 17:21:26.31.) (Telnet\Telnet_Chapter)

("A wizard cannot do everything; a fact most magicians are reticent to admit, let alone discuss with prospective clients. Still, the fact remains that there are certain objects, and people, that are, for one reason or another, completely immune to any direct magical spell. It is for this group of beings that the magician learns the subtleties of using indirect spells. It also does no harm, in dealing with these matters, to carry a large club near your person at all times."\ITALIC) (-- The Teachings of Ebenezum, Volume VIII\BOLD) (Telnet Commands) (COMMAND\DOUBLERUNNINGHEADS) (PARAMDEFLIST\COMMAND PARAMETERS) (Telnet\\CMUIP_TELN_1) (Telnetcommand)

Connects your terminal to another host on the internet. Both the remote and local processors must be connected via an internet network. (Telnet) (host-name) (Command Qualifiers) (/[NO]BINARY\/BINARY) (/[NO]DEBUG\/DEBUG) (/ESCAPE=escape-char\/ESCAPE=CONTROL-^) (/[NO]EDIT_KEYS\/EDIT_KEYS) (/PORT=port-name\/PORT=TELNET) (/LOCAL_PORT=local-port\/LOCAL_PORT=0) (/TERMINAL_TYPE=type\None.) (/[NO]XOFF\/NOXOFF) (LIST) The remote machine must allow incoming telnet connections. You must have an account on the remote system in order to login after the connection has been established. (host-name)

May be either an internet address or an internet host name. The format of the internet address is four unsigned bytes separated by periods. For example "128.2.254.130".

Once a connection has been opened, telnet enters input mode. In this mode, text typed is sent to the remote host. To issue telnet commands when in input mode, precede them with the telnet "escape character" (default control-^). To send the escape character, you must type it twice. (Command Qualifiers) (/BINARY)

Control whether or not binary mode is negotiated. (/DEBUG)

Print out some information regarding the telnet option negotiation protocol. (/ESCAPE=value\ (ESCAPE=)escape-char\ (ESCAPE=)"''F$LOGICAL("TELNET_ESCAPE")'" (D)\ (ESCAPE=)CONTROL-^ (D)) (Telnetescape key)

This qualifier specifies the telnet escape character. If the logical name TELNET_ESCAPE is defined, it is used as the default value for this switch. If the logical name is not defined, the default value is CONTROL-^.

Several formats are allowed. All of the examples below specify the same value. (UNNUMBERED) /ESCAPE=CONTROL-^ /ESCAPE=CNTRL-^ /ESCAPE=^^ /ESCAPE=%O036 /ESCAPE=%D030 /ESCAPE=30 /ESCAPE=%X1E

To send the escape character to the remote system, it must be typed twice. (/EDIT_KEYS) Interpret keystroke before sending them to the remote process. Handles INTERRUPT and ABORT OUTPUT keys nicely by flushing inappropriate output, but may cause trouble for programs like EMACS which expect all keystrokes to be passed through. (/PORT=port\ (Telnetport number) (PORT=)decimal_number\ (PORT=)port_name\ (PORT=)"''F$LOGICAL("TELNET_PORT")'" (D)\ (PORT=)TELNET (D))

Useful only as a debugging tool. Ordinary mortals should never use this switch. (/LOCAL_PORT=port\ (LOCAL_PORT=)decimal_number\ (LOCAL_PORT=)port_name\ (LOCAL_PORT=)0 (D))

Useful only as a debugging tool. Ordinary mortals should never use this switch. (/TERMINAL_TYPE=type) Attempt to negotiate this terminal type first, instead of what the TTY thinks its type is. Assumes that the other side agrees to do terminal type negotiation. (/[NO]XOFF) (Telnetflow control)

Specifies that XOFF (Control-S) and XON (Control-Q) are to be handled locally rather than transmitted to the remote site. By default they are not. (Commands) (Telnetescape commands)

Available escape commands are shown in (TELNET_ESCAPES). (Telnet escape commands\TELNET_ESCAPES) (3\5\15) (Key\Name\Purpose) (A\AYT\Sends an "Are you there?" signal to remote host.) (B\Break\Sends a Telnet Break signal to remote host. Should be the same as hitting the break key when directly connected to host.) (C\Close\Aborts and closes a TELNET connection to a remote host.) (D\Debug\Change the value of debug flag.) (I\Interact\Enter command-line mode. See "Using the CLI" for more information.) (N\Negotiate\Negotiate with the foreign host about any discrepancies between the actual and preferred option states.) (P\Pause\Temporarily return the local host using a sub-process. To return using telnet, logout of the subprocess.) (S\Status\Display connection information.) (T\Timing Mark\Send a "DO TM" signal to the remote host.) (X\XOFF\Depending on the current setting, changes XOFF-XON to be handled remotely or locally.) (?, H\Help\Some help is printed on the screen.)

To enter one of these commands, precede it with the escape character. To send the escape character to the remote system, you must type the escape character twice. (Using the CLI) (TelnetCLI)

Telnet has a command-line interpreter (CLI) which can be activated by invoking Telnet with no host name. It can also be entered at any time during a Telnet session by typing the Telnet escape sequence followed by "I". When in CLI mode, you may type in commands manually. There are many more command available in this mode as opposed to the (Telnet_escape)(letter) mode. A few of the more prominent commands are lists below:

(CLOSE) Aborts the current Telnet connection. Another connection may now be established.

(OPEN) Establish a connection to a remote host.

(CONNECT) Leave CLI mode and return to Telnet connection.

(SET) Set the state of an operating parameter.

(SHOW) Show the state of the Telnet session (ie. key bindings, modes, etc...)

(EXIT) Exit from the Telnet Facility.

(SEND) Explicitly send a Telnet command to the remote host. Commands include "Break", "AYT" (are you there?), "AO" (abort output), etc...

(STATUS) Show the state of the Telnet connection. (remote hostname, etc...)

(HELP) This command invokes the Telnet help facility. It uses the standard VMS help format. Typing HELP at the Telnet> prompt will give you information about all of the above command and others as well as their sub-options. $ TELNET/ESCAPE=CONTROL-A G.GP.CS.CMU.EDU

This command will connect your terminal to G.CS.CMU.EDU. To return to the local host you can logout or use a telnet escape command.