home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnunet10.zip / man / telnet.man < prev   
Text File  |  1996-07-27  |  30KB  |  719 lines

  1.  
  2. TELNET(1)             UNIX Reference Manual             TELNET(1)
  3.  
  4. NAME
  5.      telnet - user interface to the TELNET protocol
  6.  
  7. SYNOPSIS
  8.      telnet [-8EFKLacdfrx] [-S tos] [-X authtype] [-e escapechar] [-k realm]
  9.         [-l user] [-n tracefile] [host [port]]
  10.  
  11. DESCRIPTION
  12.      The telnet command is used to communicate with another host using the
  13.      TELNET protocol.  If telnet is invoked without the host argument, it en-
  14.      ters command mode, indicated by its prompt (telnet>). In this mode, it
  15.      accepts and executes the commands listed below.  If it is invoked with
  16.      arguments, it performs an open command with those arguments.
  17.  
  18.      Options:
  19.  
  20.      -8      Specifies an 8-bit data path.  This causes an attempt to negoti-
  21.          ate the TELNET BINARY option on both input and output.
  22.  
  23.      -E      Stops any character from being recognized as an escape character.
  24.  
  25.      -F      If Kerberos V5 authentication is being used, the -F option allows
  26.          the local credentials to be forwarded to the remote system, in-
  27.          cluding any credentials that have already been forwarded into the
  28.          local environment.
  29.  
  30.      -K      Specifies no automatic login to the remote system.
  31.  
  32.      -L      Specifies an 8-bit data path on output.  This causes the BINARY
  33.          option to be negotiated on output.
  34.  
  35.      -S tos  Sets the IP type-of-service (TOS) option for the telnet connec-
  36.          tion to the value tos, which can be a numeric TOS value or, on
  37.          systems that support it, a symbolic TOS name found in the
  38.          /etc/iptos file.
  39.  
  40.      -X atype
  41.          Disables the atype type of authentication.
  42.  
  43.      -a      Attempt automatic login.  Currently, this sends the user name via
  44.          the USER variable of the ENVIRON option if supported by the re-
  45.          mote system.  The name used is that of the current user as re-
  46.          turned by getlogin(2) if it agrees with the current user ID, oth-
  47.          erwise it is the name associated with the user ID.
  48.  
  49.      -c      Disables the reading of the user's .telnetrc file.  (See the
  50.          toggle skiprc command on this man page.)
  51.  
  52.      -d      Sets the initial value of the debug toggle to TRUE
  53.  
  54.      -e escape char
  55.          Sets the initial telnet telnet escape character to escape char.
  56.          If escape char is omitted, then there will be no escape charac-
  57.          ter.
  58.  
  59.      -f      If Kerberos V5 authentication is being used, the -f option allows
  60.          the local credentials to be forwarded to the remote system.
  61.  
  62.      -k realm
  63.          If Kerberos authentication is being used, the -k option requests
  64.          that telnet obtain tickets for the remote host in realm realm in-
  65.          stead of the remote host's realm, as determined by
  66.  
  67.          krb_realmofhost(3).
  68.  
  69.      -l user
  70.          When connecting to the remote system, if the remote system under-
  71.          stands the ENVIRON option, then user will be sent to the remote
  72.          system as the value for the variable USER.  This option implies
  73.          the -a option.  This option may also be used with the open com-
  74.          mand.
  75.  
  76.      -n tracefile
  77.          Opens tracefile for recording trace information.  See the set
  78.          tracefile command below.
  79.  
  80.      -r      Specifies a user interface similar to rlogin(1).  In this mode,
  81.          the escape character is set to the tilde (~) character, unless
  82.          modified by the -e option.
  83.  
  84.      -x      Turns on encryption of the data stream if possible.  This option
  85.          is not available outside of the United States and Canada.
  86.  
  87.      host    Indicates the official name, an alias, or the Internet address of
  88.          a remote host.
  89.  
  90.      port    Indicates a port number (address of an application).  If a number
  91.          is not specified, the default telnet port is used.
  92.  
  93.      When in rlogin mode, a line of the form ~.  disconnects from the remote
  94.      host; ~ is the telnet escape character.  Similarly, the line ~^Z suspends
  95.      the telnet session.  The line ~^] escapes to the normal telnet escape
  96.      prompt.
  97.  
  98.      Once a connection has been opened, telnet will attempt to enable the
  99.      TELNET LINEMODE option.  If this fails, then telnet will revert to one of
  100.      two input modes: either ``character at a time'' or ``old line by line''
  101.      depending on what the remote system supports.
  102.  
  103.      When LINEMODE is enabled, character processing is done on the local sys-
  104.      tem, under the control of the remote system.  When input editing or char-
  105.      acter echoing is to be disabled, the remote system will relay that infor-
  106.      mation.  The remote system will also relay changes to any special charac-
  107.      ters that happen on the remote system, so that they can take effect on
  108.      the local system.
  109.  
  110.      In ``character at a time'' mode, most text typed is immediately sent to
  111.      the remote host for processing.
  112.  
  113.      In ``old line by line'' mode, all text is echoed locally, and (normally)
  114.      only completed lines are sent to the remote host.    The ``local echo char-
  115.      acter'' (initially ``^E'') may be used to turn off and on the local echo
  116.      (this would mostly be used to enter passwords without the password being
  117.      echoed).
  118.  
  119.      If the LINEMODE option is enabled, or if the localchars toggle is TRUE
  120.      (the default for ``old line by line``; see below), the user's quit, intr,
  121.      and flush characters are trapped locally, and sent as TELNET protocol se-
  122.      quences to the remote side.  If LINEMODE has ever been enabled, then the
  123.      user's susp and eof are also sent as TELNET protocol sequences, and quit
  124.      is sent as a TELNET ABORT instead of BREAK There are options (see toggle
  125.      autoflush and toggle autosynch below) which cause this action to flush
  126.      subsequent output to the terminal (until the remote host acknowledges the
  127.      TELNET sequence) and flush previous terminal input (in the case of quit
  128.      and intr).
  129.  
  130.      While connected to a remote host, telnet command mode may be entered by
  131.      typing the telnet ``escape character'' (initially ``^]'').  When in com-
  132.      mand mode, the normal terminal editing conventions are available.
  133.  
  134.      The following telnet commands are available.  Only enough of each command
  135.      to uniquely identify it need be typed (this is also true for arguments to
  136.      the mode, set, toggle, unset, slc, environ, and display commands).
  137.  
  138.      auth argument ...
  139.         The auth command manipulates the information sent through the
  140.         TELNET AUTHENTICATE option.  Valid arguments for the auth com-
  141.         mand are as follows:
  142.  
  143.         disable type  Disables the specified type of authentication.
  144.                   To obtain a list of available types, use the
  145.                   auth disable ? command.
  146.  
  147.         enable type   Enables the specified type of authentication.
  148.                   To obtain a list of available types, use the
  149.                   auth enable ? command.
  150.  
  151.         status          Lists the current status of the various types of
  152.                   authentication.
  153.  
  154.      close    Close a TELNET session and return to command mode.
  155.  
  156.      display argument ...
  157.         Displays all, or some, of the set and toggle values (see be-
  158.         low).
  159.  
  160.      encrypt argument ...
  161.         The encrypt command manipulates the information sent through
  162.         the TELNET ENCRYPT option.
  163.  
  164.         Note:  Because of export controls, the TELNET ENCRYPT option
  165.         is not supported outside of the United States and Canada.
  166.  
  167.         Valid arguments for the encrypt command are as follows:
  168.  
  169.         disable type [input|output]
  170.                   Disables the specified type of encryption.  If
  171.                   you omit the input and output, both input and
  172.                   output are disabled.  To obtain a list of avail-
  173.                   able types, use the encrypt disable ? command.
  174.  
  175.         enable type [input|output]
  176.                   Enables the specified type of encryption.  If
  177.                   you omit input and output, both input and output
  178.                   are enabled.  To obtain a list of available
  179.                   types, use the encrypt enable ? command.
  180.  
  181.         input          This is the same as the encrypt start input com-
  182.                   mand.
  183.  
  184.         -input          This is the same as the encrypt stop input com-
  185.                   mand.
  186.  
  187.         output          This is the same as the encrypt start output
  188.                   command.
  189.  
  190.         -output       This is the same as the encrypt stop output com-
  191.                   mand.
  192.  
  193.         start [input|output]
  194.                   Attempts to start encryption.  If you omit input
  195.                   and output, both input and output are enabled.
  196.                   To obtain a list of available types, use the
  197.  
  198.                   encrypt enable ? command.
  199.  
  200.         status          Lists the current status of encryption.
  201.  
  202.         stop [input|output]
  203.                   Stops encryption.  If you omit input and output,
  204.                   encryption is on both input and output.
  205.  
  206.         type type     Sets the default type of encryption to be used
  207.                   with later encrypt start or encrypt stop com-
  208.                   mands.
  209.  
  210.      environ arguments...
  211.         The environ command is used to manipulate the the variables
  212.         that my be sent through the TELNET ENVIRON option.  The ini-
  213.         tial set of variables is taken from the users environment,
  214.         with only the DISPLAY and PRINTER variables being exported by
  215.         default.  The USER variable is also exported if the -a or -l
  216.         options are used.
  217.         Valid arguments for the environ command are:
  218.  
  219.         define variable value
  220.                 Define the variable variable to have a value of
  221.                 value. Any variables defined by this command are
  222.                 automatically exported.  The value may be enclosed
  223.                 in single or double quotes so that tabs and spaces
  224.                 may be included.
  225.  
  226.         undefine variable
  227.                 Remove variable from the list of environment vari-
  228.                 ables.
  229.  
  230.         export variable
  231.                 Mark the variable variable to be exported to the
  232.                 remote side.
  233.  
  234.         unexport variable
  235.                 Mark the variable variable to not be exported un-
  236.                 less explicitly asked for by the remote side.
  237.  
  238.         list        List the current set of environment variables.
  239.                 Those marked with a * will be sent automatically,
  240.                 other variables will only be sent if explicitly
  241.                 requested.
  242.  
  243.         ?        Prints out help information for the environ com-
  244.                 mand.
  245.  
  246.      logout    Sends the TELNET LOGOUT option to the remote side.  This com-
  247.         mand is similar to a close command; however, if the remote
  248.         side does not support the LOGOUT option, nothing happens.  If,
  249.         however, the remote side does support the LOGOUT option, this
  250.         command should cause the remote side to close the TELNET con-
  251.         nection.  If the remote side also supports the concept of sus-
  252.         pending a user's session for later reattachment, the logout
  253.         argument indicates that you should terminate the session imme-
  254.         diately.
  255.  
  256.      mode type    Type is one of several options, depending on the state of the
  257.         TELNET session.  The remote host is asked for permission to go
  258.         into the requested mode.  If the remote host is capable of en-
  259.         tering that mode, the requested mode will be entered.
  260.  
  261.         character     Disable the TELNET LINEMODE option, or, if the
  262.                   remote side does not understand the LINEMODE op-
  263.  
  264.                   tion, then enter ``character at a time`` mode.
  265.  
  266.         line          Enable the TELNET LINEMODE option, or, if the
  267.                   remote side does not understand the LINEMODE op-
  268.                   tion, then attempt to enter ``old-line-by-line``
  269.                   mode.
  270.  
  271.         isig (-isig)  Attempt to enable (disable) the TRAPSIG mode of
  272.                   the LINEMODE option.  This requires that the
  273.                   LINEMODE option be enabled.
  274.  
  275.         edit (-edit)  Attempt to enable (disable) the EDIT mode of the
  276.                   LINEMODE option.    This requires that the
  277.                   LINEMODE option be enabled.
  278.  
  279.         softtabs (-softtabs)
  280.                   Attempt to enable (disable) the SOFT_TAB mode of
  281.                   the LINEMODE option.  This requires that the
  282.                   LINEMODE option be enabled.
  283.  
  284.         litecho (-litecho)
  285.                   Attempt to enable (disable) the LIT_ECHO mode of
  286.                   the LINEMODE option.  This requires that the
  287.                   LINEMODE option be enabled.
  288.  
  289.         ?          Prints out help information for the mode com-
  290.                   mand.
  291.  
  292.      open host [[-l] user][-port]
  293.         Open a connection to the named host.  If no port number is
  294.         specified, telnet will attempt to contact a TELNET server at
  295.         the default port.  The host specification may be either a host
  296.         name (see hosts(5))  or an Internet address specified in the
  297.         ``dot notation'' (see inet(3)).  The [-l] option may be used
  298.         to specify the user name to be passed to the remote system via
  299.         the ENVIRON option.  When connecting to a non-standard port,
  300.         telnet omits any automatic initiation of TELNET options.  When
  301.         the port number is preceded by a minus sign, the initial op-
  302.         tion negotiation is done.  After establishing a connection,
  303.         the file .telnetrc in the users home directory is opened.
  304.         Lines beginning with a # are comment lines.  Blank lines are
  305.         ignored.  Lines that begin without white space are the start
  306.         of a machine entry.  The first thing on the line is the name
  307.         of the machine that is being connected to.  The rest of the
  308.         line, and successive lines that begin with white space are as-
  309.         sumed to be telnet commands and are processed as if they had
  310.         been typed in manually to the telnet command prompt.
  311.  
  312.      quit    Close any open TELNET session and exit telnet. An end of file
  313.         (in command mode) will also close a session and exit.
  314.  
  315.      send arguments
  316.         Sends one or more special character sequences to the remote
  317.         host.  The following are the arguments which may be specified
  318.         (more than one argument may be specified at a time):
  319.  
  320.         abort    Sends the TELNET ABORT (Abort processes) sequence.
  321.  
  322.         ao    Sends the TELNET AO (Abort Output) sequence, which
  323.             should cause the remote system to flush all output
  324.             from the remote system to the user's terminal.
  325.  
  326.         ayt    Sends the TELNET AYT (Are You There) sequence, to
  327.             which the remote system may or may not choose to re-
  328.  
  329.             spond.
  330.  
  331.         brk    Sends the TELNET BRK (Break) sequence, which may have
  332.             significance to the remote system.
  333.  
  334.         ec    Sends the TELNET EC (Erase Character) sequence, which
  335.             should cause the remote system to erase the last char-
  336.             acter entered.
  337.  
  338.         el    Sends the TELNET EL (Erase Line) sequence, which
  339.             should cause the remote system to erase the line cur-
  340.             rently being entered.
  341.  
  342.         eof    Sends the TELNET EOF (End Of File) sequence.
  343.  
  344.         eor    Sends the TELNET EOR (End of Record) sequence.
  345.  
  346.         escape    Sends the current telnet escape character (initially
  347.             ``^'').
  348.  
  349.         ga    Sends the TELNET GA (Go Ahead) sequence, which likely
  350.             has no significance to the remote system.
  351.  
  352.         getstatus
  353.             If the remote side supports the TELNET STATUS command,
  354.             getstatus will send the subnegotiation to request that
  355.             the server send its current option status.
  356.  
  357.         ip    Sends the TELNET IP (Interrupt Process) sequence,
  358.             which should cause the remote system to abort the cur-
  359.             rently running process.
  360.  
  361.         nop    Sends the TELNET NOP (No OPeration) sequence.
  362.  
  363.         susp    Sends the TELNET SUSP (SUSPend process) sequence.
  364.  
  365.         synch    Sends the TELNET SYNCH sequence.  This sequence causes
  366.             the remote system to discard all previously typed (but
  367.             not yet read) input.  This sequence is sent as TCP ur-
  368.             gent data (and may not work if the remote system is a
  369.             4.2BSD system -- if it doesn't work, a lower case
  370.             ``r'' may be echoed on the terminal).
  371.  
  372.         do cmd
  373.  
  374.         dont cmd
  375.  
  376.         will cmd
  377.  
  378.         wont cmd
  379.             Sends the TELNET DO cmd sequence.  Cmd can be either a
  380.             decimal number between 0 and 255, or a symbolic name
  381.             for a specific TELNET command.    Cmd can also be either
  382.             help or ? to print out help information, including a
  383.             list of known symbolic names.
  384.  
  385.         ?    Prints out help information for the send command.
  386.  
  387.      set argument value
  388.  
  389.      unset argument value
  390.         The set command will set any one of a number of telnet vari-
  391.         ables to a specific value or to TRUE. The special value off
  392.         turns off the function associated with the variable, this is
  393.         equivalent to using the unset command.    The unset command will
  394.         disable or set to FALSE any of the specified functions.  The
  395.         values of variables may be interrogated with the display com-
  396.         mand.  The variables which may be set or unset, but not tog-
  397.         gled, are listed here.    In addition, any of the variables for
  398.         the toggle command may be explicitly set or unset using the
  399.         set and unset commands.
  400.  
  401.         ayt    If TELNET is in localchars mode, or LINEMODE is en-
  402.             abled, and the status character is typed, a TELNET AYT
  403.             sequence (see send ayt preceding) is sent to the re-
  404.             mote host.  The initial value for the "Are You There"
  405.             character is the terminal's status character.
  406.  
  407.         echo    This is the value (initially ``^E'') which, when in
  408.             ``line by line'' mode, toggles between doing local
  409.             echoing of entered characters (for normal processing),
  410.             and suppressing echoing of entered characters (for en-
  411.             tering, say, a password).
  412.  
  413.         eof    If telnet is operating in LINEMODE or ``old line by
  414.             line'' mode, entering this character as the first
  415.             character on a line will cause this character to be
  416.             sent to the remote system.  The initial value of the
  417.             eof character is taken to be the terminal's eof char-
  418.             acter.
  419.  
  420.         erase    If telnet is in localchars mode (see toggle localchars
  421.             below), and if telnet is operating in ``character at a
  422.             time'' mode, then when this character is typed, a
  423.             TELNET EC sequence (see send ec above) is sent to the
  424.             remote system.    The initial value for the erase char-
  425.             acter is taken to be the terminal's erase character.
  426.  
  427.         escape    This is the telnet escape character (initially ``^['')
  428.             which causes entry into telnet command mode (when con-
  429.             nected to a remote system).
  430.  
  431.         flushoutput
  432.             If telnet is in localchars mode (see toggle localchars
  433.             below) and the flushoutput character is typed, a
  434.             TELNET AO sequence (see send ao above) is sent to the
  435.             remote host.  The initial value for the flush charac-
  436.             ter is taken to be the terminal's flush character.
  437.  
  438.         forw1
  439.  
  440.         forw2    If TELNET is operating in LINEMODE, these are the
  441.             characters that, when typed, cause partial lines to be
  442.             forwarded to the remote system.  The initial value for
  443.             the forwarding characters are taken from the termi-
  444.             nal's eol and eol2 characters.
  445.  
  446.         interrupt
  447.             If telnet is in localchars mode (see toggle localchars
  448.             below) and the interrupt character is typed, a TELNET
  449.             IP sequence (see send ip above) is sent to the remote
  450.             host.  The initial value for the interrupt character
  451.             is taken to be the terminal's intr character.
  452.  
  453.         kill    If telnet is in localchars mode (see toggle localchars
  454.             below), and if telnet is operating in ``character at a
  455.             time'' mode, then when this character is typed, a
  456.             TELNET EL sequence (see send el above) is sent to the
  457.             remote system.    The initial value for the kill charac-
  458.             ter is taken to be the terminal's kill character.
  459.  
  460.         lnext    If telnet is operating in LINEMODE or ``old line by
  461.             line`` mode, then this character is taken to be the
  462.             terminal's lnext character.  The initial value for the
  463.             lnext character is taken to be the terminal's lnext
  464.             character.
  465.  
  466.         quit    If telnet is in localchars mode (see toggle localchars
  467.             below) and the quit character is typed, a TELNET BRK
  468.             sequence (see send brk above) is sent to the remote
  469.             host.  The initial value for the quit character is
  470.             taken to be the terminal's quit character.
  471.  
  472.         reprint
  473.             If telnet is operating in LINEMODE or ``old line by
  474.             line`` mode, then this character is taken to be the
  475.             terminal's reprint character.  The initial value for
  476.             the reprint character is taken to be the terminal's
  477.             reprint character.
  478.  
  479.         rlogin    This is the rlogin escape character.  If set, the nor-
  480.             mal TELNET escape character is ignored unless it is
  481.             preceded by this character at the beginning of a line.
  482.             This character, at the beginning of a line followed by
  483.             a "."  closes the connection; when followed by a ^Z it
  484.             suspends the telnet command.  The initial state is to
  485.             disable the rlogin escape character.
  486.  
  487.         start    If the TELNET TOGGLE-FLOW-CONTROL option has been en-
  488.             abled, then this character is taken to be the termi-
  489.             nal's start character.    The initial value for the kill
  490.             character is taken to be the terminal's start charac-
  491.             ter.
  492.  
  493.         stop    If the TELNET TOGGLE-FLOW-CONTROL option has been en-
  494.             abled, then this character is taken to be the termi-
  495.             nal's stop character.  The initial value for the kill
  496.             character is taken to be the terminal's stop charac-
  497.             ter.
  498.  
  499.         susp    If telnet is in localchars mode, or LINEMODE is en-
  500.             abled, and the suspend character is typed, a TELNET
  501.             SUSP sequence (see send susp above) is sent to the re-
  502.             mote host.  The initial value for the suspend charac-
  503.             ter is taken to be the terminal's suspend character.
  504.  
  505.         tracefile
  506.             This is the file to which the output, caused by
  507.             netdata or option tracing being TRUE, will be written.
  508.             If it is set to ``-'', then tracing information will
  509.             be written to standard output (the default).
  510.  
  511.         worderase
  512.             If telnet is operating in LINEMODE or ``old line by
  513.             line`` mode, then this character is taken to be the
  514.             terminal's worderase character.  The initial value for
  515.             the worderase character is taken to be the terminal's
  516.             worderase character.
  517.  
  518.         ?    Displays the legal set (unset) commands.
  519.  
  520.      slc state    The slc command (Set Local Characters) is used to set or
  521.         change the state of the the special characters when the TELNET
  522.         LINEMODE option has been enabled.  Special characters are
  523.         characters that get mapped to TELNET commands sequences (like
  524.         ip or quit) or line editing characters (like erase and kill).
  525.  
  526.         By default, the local special characters are exported.
  527.  
  528.         check        Verify the current settings for the current spe-
  529.                 cial characters.  The remote side is requested to
  530.                 send all the current special character settings,
  531.                 and if there are any discrepancies with the local
  532.                 side, the local side will switch to the remote
  533.                 value.
  534.  
  535.         export        Switch to the local defaults for the special char-
  536.                 acters.  The local default characters are those of
  537.                 the local terminal at the time when telnet was
  538.                 started.
  539.  
  540.         import        Switch to the remote defaults for the special
  541.                 characters.  The remote default characters are
  542.                 those of the remote system at the time when the
  543.                 TELNET connection was established.
  544.  
  545.         ?        Prints out help information for the slc command.
  546.  
  547.      status    Show the current status of telnet. This includes the peer one
  548.         is connected to, as well as the current mode.
  549.  
  550.      toggle arguments ...
  551.         Toggle (between TRUE and FALSE) various flags that control how
  552.         telnet responds to events.  These flags may be set explicitly
  553.         to TRUE or FALSE using the set and unset commands listed
  554.         above.    More than one argument may be specified.  The state of
  555.         these flags may be interrogated with the display command.
  556.         Valid arguments are:
  557.  
  558.         authdebug     Turns on debugging information for the authenti-
  559.                   cation code.
  560.  
  561.         autoflush     If autoflush and localchars are both TRUE, then
  562.                   when the ao, or quit characters are recognized
  563.                   (and transformed into TELNET sequences; see set
  564.                   above for details), telnet refuses to display
  565.                   any data on the user's terminal until the remote
  566.                   system acknowledges (via a TELNET TIMING MARK
  567.                   option) that it has processed those TELNET se-
  568.                   quences.    The initial value for this toggle is
  569.                   TRUE if the terminal user had not done an "stty
  570.                   noflsh", otherwise FALSE (see stty(1)).
  571.  
  572.         autodecrypt   When the TELNET ENCRYPT option is negotiated, by
  573.                   default the actual encryption (decryption) of
  574.                   the data stream does not start automatically.
  575.                   The autoencrypt (autodecrypt) command states
  576.                   that encryption of the output (input) stream
  577.                   should be enabled as soon as possible.
  578.  
  579.                   Note:  Because of export controls, the TELNET
  580.                   ENCRYPT option is not supported outside the
  581.                   United States and Canada.
  582.  
  583.         autologin     If the remote side supports the TELNET
  584.                   AUTHENTICATION option TELNET attempts to use it
  585.                   to perform automatic authentication.  If the
  586.                   AUTHENTICATION option is not supported, the us-
  587.                   er's login name are propagated through the
  588.                   TELNET ENVIRON option.  This command is the same
  589.  
  590.                   as specifying a option on the open command.
  591.  
  592.         autosynch     If autosynch and localchars are both TRUE, then
  593.                   when either the intr or quit characters is typed
  594.                   (see set above for descriptions of the intr and
  595.                   quit characters), the resulting TELNET sequence
  596.                   sent is followed by the TELNET SYNCH sequence.
  597.                   This procedure should cause the remote system to
  598.                   begin throwing away all previously typed input
  599.                   until both of the TELNET sequences have been
  600.                   read and acted upon.  The initial value of this
  601.                   toggle is FALSE.
  602.  
  603.         binary          Enable or disable the TELNET BINARY option on
  604.                   both input and output.
  605.  
  606.         inbinary      Enable or disable the TELNET BINARY option on
  607.                   input.
  608.  
  609.         outbinary     Enable or disable the TELNET BINARY option on
  610.                   output.
  611.  
  612.         crlf          If this is TRUE, then carriage returns will be
  613.                   sent as <CR><LF>. If this is FALSE, then car-
  614.                   riage returns will be send as <CR><NUL>. The
  615.                   initial value for this toggle is FALSE.
  616.  
  617.         crmod          Toggle carriage return mode.  When this mode is
  618.                   enabled, most carriage return characters re-
  619.                   ceived from the remote host will be mapped into
  620.                   a carriage return followed by a line feed.  This
  621.                   mode does not affect those characters typed by
  622.                   the user, only those received from the remote
  623.                   host.  This mode is not very useful unless the
  624.                   remote host only sends carriage return, but nev-
  625.                   er line feed.  The initial value for this toggle
  626.                   is FALSE.
  627.  
  628.         debug          Toggles socket level debugging (useful only to
  629.                   the super user). The initial value for this tog-
  630.                   gle is FALSE.
  631.  
  632.         encdebug      Turns on debugging information for the encryp-
  633.                   tion code.
  634.  
  635.         localchars    If this is TRUE, then the flush, interrupt,
  636.                   quit, erase, and kill characters (see set above)
  637.                   are recognized locally, and transformed into
  638.                   (hopefully) appropriate TELNET control sequences
  639.                   (respectively ao, ip, brk, ec, and el; see send
  640.                   above).  The initial value for this toggle is
  641.                   TRUE in ``old line by line'' mode, and FALSE in
  642.                   ``character at a time'' mode.  When the LINEMODE
  643.                   option is enabled, the value of localchars is
  644.                   ignored, and assumed to always be TRUE. If
  645.                   LINEMODE has ever been enabled, then quit is
  646.                   sent as abort, and eof and are sent as eof and
  647.                   susp, see send above).
  648.  
  649.         netdata       Toggles the display of all network data (in hex-
  650.                   adecimal format).  The initial value for this
  651.                   toggle is FALSE.
  652.  
  653.         options       Toggles the display of some internal telnet pro-
  654.                   tocol processing (having to do with TELNET op-
  655.                   tions).  The initial value for this toggle is
  656.  
  657.                   FALSE.
  658.  
  659.         prettydump    When the netdata toggle is enabled, if
  660.                   prettydump is enabled the output from the
  661.                   netdata command will be formatted in a more user
  662.                   readable format.    Spaces are put between each
  663.                   character in the output, and the beginning of
  664.                   any TELNET escape sequence is preceded by a '*'
  665.                   to aid in locating them.
  666.  
  667.         skiprc          When the skiprc toggle is TRUE, TELNET skips the
  668.                   reading of the .telnetrc file in the users home
  669.                   directory when connections are opened.  The ini-
  670.                   tial value for this toggle is FALSE.
  671.  
  672.         termdata      Toggles the display of all terminal data (in
  673.                   hexadecimal format).  The initial value for this
  674.                   toggle is FALSE.
  675.  
  676.         verbose_encrypt
  677.                   When the verbose_encrypt toggle is TRUE, TELNET
  678.                   prints out a message each time encryption is en-
  679.                   abled or disabled.  The initial value for this
  680.                   toggle is FALSE. Note:  Because of export con-
  681.                   trols, data encryption is not supported outside
  682.                   of the United States and Canada.
  683.  
  684.         ?          Displays the legal toggle commands.
  685.  
  686.      z        Suspend telnet. This command only works when the user is using
  687.         the csh(1).
  688.  
  689.      ! [command]
  690.         Execute a single command in a subshell on the local system.
  691.         If command is omitted, then an interactive subshell is in-
  692.         voked.
  693.  
  694.      ? [command]
  695.         Get help.  With no arguments, telnet prints a help summary.
  696.         If a command is specified, telnet will print the help informa-
  697.         tion for just that command.
  698.  
  699. ENVIRONMENT
  700.      Telnet uses at least the HOME, SHELL, DISPLAY, and TERM environment vari-
  701.      ables.  Other environment variables may be propagated to the other side
  702.      via the TELNET ENVIRON option.
  703.  
  704. FILES
  705.      ~/.telnetrc  user customized telnet startup values
  706.  
  707. HISTORY
  708.      The Telnet command appeared in 4.2BSD.
  709.  
  710. NOTES
  711.      On some remote systems, echo has to be turned off manually when in ``old
  712.      line by line'' mode.
  713.  
  714.      In ``old line by line'' mode or LINEMODE the terminal's eof character is
  715.      only recognized (and sent to the remote system) when it is the first
  716.      character on a line.
  717.  
  718. 4.2 Berkeley Distribution     June 1, 1994                    11
  719.