version 1.53, 2014/08/10 02:41:41 |
version 1.54, 2014/11/15 14:41:02 |
|
|
.Xr bind 2 |
.Xr bind 2 |
on the local socket to bind it to an aliased address (see |
on the local socket to bind it to an aliased address (see |
.Xr ifconfig 8 |
.Xr ifconfig 8 |
and the ``alias'' specifier) or to the address of |
and the |
|
.Cm alias |
|
specifier) or to the address of |
another interface than the one naturally chosen by |
another interface than the one naturally chosen by |
.Xr connect 2 . |
.Xr connect 2 . |
This can be useful when connecting to services which use IP addresses |
This can be useful when connecting to services which use IP addresses |
|
|
If this fails, |
If this fails, |
.Nm |
.Nm |
will revert to one of two input modes: |
will revert to one of two input modes: |
either ``character at a time'' |
either |
or ``old line by line'' |
.Dq character at a time |
|
or |
|
.Dq old line by line |
depending on what the remote system supports. |
depending on what the remote system supports. |
.Pp |
.Pp |
When |
When |
|
|
changes to any special characters that happen on the remote |
changes to any special characters that happen on the remote |
system, so that they can take effect on the local system. |
system, so that they can take effect on the local system. |
.Pp |
.Pp |
In ``character at a time'' mode, most |
In |
|
.Dq character at a time |
|
mode, most |
text typed is immediately sent to the remote host for processing. |
text typed is immediately sent to the remote host for processing. |
.Pp |
.Pp |
In ``old line by line'' mode, all text is echoed locally, |
In |
|
.Dq old line by line |
|
mode, all text is echoed locally, |
and (normally) only completed lines are sent to the remote host. |
and (normally) only completed lines are sent to the remote host. |
The ``local echo character'' (initially ``^E'') may be used |
The local echo character |
|
.Pq initially Sq ^E |
|
may be used |
to turn off and on the local echo |
to turn off and on the local echo |
(this would mostly be used to enter passwords |
(this would mostly be used to enter passwords |
without the password being echoed). |
without the password being echoed). |
|
|
.Ic localchars |
.Ic localchars |
toggle is |
toggle is |
.Dv TRUE |
.Dv TRUE |
(the default for ``old line by line''; see below), |
(the default for |
|
.Dq old line by line ; |
|
see below), |
the user's |
the user's |
.Ic quit , |
.Ic quit , |
.Ic intr , |
.Ic intr , |
|
|
.Nm |
.Nm |
command mode may be entered by typing the |
command mode may be entered by typing the |
.Nm |
.Nm |
``escape character'' (initially ``^]''). |
escape character |
|
.Pq initially Sq ^] . |
When in command mode, the normal terminal editing conventions are available. |
When in command mode, the normal terminal editing conventions are available. |
Note that the escape character will return to the command mode of the initial |
Note that the escape character will return to the command mode of the initial |
invocation of |
invocation of |
|
|
.Dv TELNET LINEMODE |
.Dv TELNET LINEMODE |
option, or, if the remote side does not understand the |
option, or, if the remote side does not understand the |
.Dv LINEMODE |
.Dv LINEMODE |
option, then enter ``character at a time'' mode. |
option, then enter |
|
.Dq character at a time |
|
mode. |
.It Ic line |
.It Ic line |
Enable the |
Enable the |
.Dv TELNET LINEMODE |
.Dv TELNET LINEMODE |
option, or, if the remote side does not understand the |
option, or, if the remote side does not understand the |
.Dv LINEMODE |
.Dv LINEMODE |
option, then attempt to enter ``old-line-by-line'' mode. |
option, then attempt to enter |
|
.Dq old line by line |
|
mode. |
.It Ic isig Pq Ic \-isig |
.It Ic isig Pq Ic \-isig |
Attempt to enable (disable) the |
Attempt to enable (disable) the |
.Dv TRAPSIG |
.Dv TRAPSIG |
|
|
will attempt to contact a TELNET server at the default port. |
will attempt to contact a TELNET server at the default port. |
The host specification may be either a host name (see |
The host specification may be either a host name (see |
.Xr hosts 5 ) |
.Xr hosts 5 ) |
or an Internet address specified in the ``dot notation'' (see |
or an Internet address specified in the |
|
.Dq dot notation |
|
(see |
.Xr inet_ntop 3 ) . |
.Xr inet_ntop 3 ) . |
The |
The |
.Fl a , |
.Fl a , |
|
|
.Pa \&.telnetrc |
.Pa \&.telnetrc |
in the |
in the |
user's home directory is opened. |
user's home directory is opened. |
Lines beginning with a ``#'' are |
Lines beginning with a |
comment lines. |
.Sq # |
|
are comment lines. |
Blank lines are ignored. |
Blank lines are ignored. |
Lines that begin |
Lines that begin |
without whitespace are the start of a machine entry. |
without whitespace are the start of a machine entry. |
|
|
.It Ic escape |
.It Ic escape |
Sends the current |
Sends the current |
.Nm |
.Nm |
escape character (initially ``^]''). |
escape character |
|
.Pq initially Sq ^] . |
.It Ic ga |
.It Ic ga |
Sends the |
Sends the |
.Dv TELNET GA |
.Dv TELNET GA |
|
|
data (and may not work if the remote system is a |
data (and may not work if the remote system is a |
.Bx 4.2 |
.Bx 4.2 |
system -- if |
system -- if |
it doesn't work, a lower case ``r'' may be echoed on the terminal). |
it doesn't work, a lower case |
|
.Sq r |
|
may be echoed on the terminal). |
.It Ic do Ar cmd |
.It Ic do Ar cmd |
Sends the |
Sends the |
.Dv TELNET DO |
.Dv TELNET DO |
|
|
The initial value for the "Are You There" |
The initial value for the "Are You There" |
character is the terminal's status character. |
character is the terminal's status character. |
.It Ic echo |
.It Ic echo |
This is the value (initially ``^E'') which, when in |
This is the value |
``line by line'' mode, toggles between doing local echoing |
.Pq initially Sq ^E |
|
which, when in |
|
.Dq line by line |
|
mode, toggles between doing local echoing |
of entered characters (for normal processing), and suppressing |
of entered characters (for normal processing), and suppressing |
echoing of entered characters (for entering, say, a password). |
echoing of entered characters (for entering, say, a password). |
.It Ic eof |
.It Ic eof |
|
|
.Nm |
.Nm |
is operating in |
is operating in |
.Dv LINEMODE |
.Dv LINEMODE |
or ``old line by line'' mode, entering this character |
or |
|
.Dq old line by line |
|
mode, entering this character |
as the first character on a line will cause this character to be |
as the first character on a line will cause this character to be |
sent to the remote system. |
sent to the remote system. |
The initial value of the |
The initial value of the |
|
|
below), |
below), |
and if |
and if |
.Nm |
.Nm |
is operating in ``character at a time'' mode, then when this |
is operating in |
character is typed, a |
.Dq character at a time |
|
mode, then when this character is typed, a |
.Dv TELNET EC |
.Dv TELNET EC |
sequence (see |
sequence (see |
.Ic send |
.Ic send |
|
|
.It Ic escape |
.It Ic escape |
This is the |
This is the |
.Nm |
.Nm |
escape character (initially ``^['') which causes entry |
escape character |
into |
.Pq initially Sq ^[ |
|
which causes entry into |
.Nm |
.Nm |
command mode (when connected to a remote system). |
command mode (when connected to a remote system). |
.It Ic flushoutput |
.It Ic flushoutput |
|
|
below), |
below), |
and if |
and if |
.Nm |
.Nm |
is operating in ``character at a time'' mode, then when this |
is operating in |
character is typed, a |
.Dq character at a time |
|
mode, then when this character is typed, a |
.Dv TELNET EL |
.Dv TELNET EL |
sequence (see |
sequence (see |
.Ic send |
.Ic send |
|
|
.Nm |
.Nm |
is operating in |
is operating in |
.Dv LINEMODE |
.Dv LINEMODE |
or ``old line by line'' mode, then this character is taken to |
or |
be the terminal's |
.Dq old line by line |
|
mode, then this character is taken to be the terminal's |
.Ic lnext |
.Ic lnext |
character. |
character. |
The initial value for the |
The initial value for the |
|
|
.Nm |
.Nm |
is operating in |
is operating in |
.Dv LINEMODE |
.Dv LINEMODE |
or ``old line by line'' mode, then this character is taken to |
or |
be the terminal's |
.Dq old line by line |
|
mode, then this character is taken to be the terminal's |
.Ic reprint |
.Ic reprint |
character. |
character. |
The initial value for the |
The initial value for the |
|
|
.Nm |
.Nm |
is operating in |
is operating in |
.Dv LINEMODE |
.Dv LINEMODE |
or ``old line by line'' mode, then this character is taken to |
or |
be the terminal's |
.Dq old line by line |
|
mode, then this character is taken to be the terminal's |
.Ic worderase |
.Ic worderase |
character. |
character. |
The initial value for the |
The initial value for the |
|
|
above). |
above). |
The initial value for this toggle is |
The initial value for this toggle is |
.Dv TRUE |
.Dv TRUE |
in ``old line by line'' mode, |
in |
and |
.Dq old line by line |
|
mode, and |
.Dv FALSE |
.Dv FALSE |
in ``character at a time'' mode. |
in |
|
.Dq character at a time |
|
mode. |
When the |
When the |
.Dv LINEMODE |
.Dv LINEMODE |
option is enabled, the value of |
option is enabled, the value of |
|
|
.Bx 4.2 . |
.Bx 4.2 . |
.Sh NOTES |
.Sh NOTES |
On some remote systems, echo has to be turned off manually when in |
On some remote systems, echo has to be turned off manually when in |
``old line by line'' mode. |
.Dq old line by line |
|
mode. |
.Pp |
.Pp |
In ``old line by line'' mode or |
In |
|
.Dq old line by line |
|
mode or |
.Dv LINEMODE |
.Dv LINEMODE |
the terminal's |
the terminal's |
.Ic eof |
.Ic eof |