fix sccsid to use keywords and modern initialization syntax
[unix-history] / usr / src / usr.bin / telnet / telnet.1
index 2b2cc85..696d0d3 100644 (file)
@@ -2,14 +2,12 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)telnet.1    6.3 (Berkeley) %G%
+.\"    @(#)telnet.1    6.5 (Berkeley) %G%
 .\"
 .TH TELNET 1C ""
 .UC 5
 .SH NAME
 .\"
 .TH TELNET 1C ""
 .UC 5
 .SH NAME
-telnet \- user interface to the
-.B TELNET
-protocol
+telnet \- user interface to the \s-1TELNET\s0 protocol
 .SH SYNOPSIS
 telnet [ host [ port ] ]
 .SH DESCRIPTION
 .SH SYNOPSIS
 telnet [ host [ port ] ]
 .SH DESCRIPTION
@@ -45,7 +43,7 @@ without the password being echoed).
 .PP
 In either mode, if the
 .I localchars
 .PP
 In either mode, if the
 .I localchars
-toggle (see below) is TRUE,
+toggle is TRUE (the default in line mode; see below),
 the user's
 .IR quit ,
 .IR intr ,
 the user's
 .IR quit ,
 .IR intr ,
@@ -197,7 +195,7 @@ system.
 .br
 Sends the
 .B TELNET IP
 .br
 Sends the
 .B TELNET IP
-(Interrupt Process) sequence, which hopefully will cause the remote
+(Interrupt Process) sequence, which should cause the remote
 system to abort the currently running process.
 .TP
 .I ao
 system to abort the currently running process.
 .TP
 .I ao
@@ -216,7 +214,7 @@ the user's terminal.
 Sends the
 .B TELNET AYT
 (Are You There)
 Sends the
 .B TELNET AYT
 (Are You There)
-sequence, which the remote system may or may not choose to respond to.
+sequence, to which the remote system may or may not choose to respond.
 .TP
 .I ec
 .br
 .TP
 .I ec
 .br
@@ -262,6 +260,9 @@ Set any one of a number of
 variables to a specific value.
 The special value \*(lqoff\*(rq turns off the function associated with
 the variable.
 variables to a specific value.
 The special value \*(lqoff\*(rq turns off the function associated with
 the variable.
+The values of variables may be interrogated with the
+.B display
+command.
 The variables which may be specified are:
 .RS
 .TP
 The variables which may be specified are:
 .RS
 .TP
@@ -427,6 +428,9 @@ various flags that control how
 .I telnet
 responds to events.
 More than one argument may be specified.
 .I telnet
 responds to events.
 More than one argument may be specified.
+The state of these flags may be interrogated with the
+.B display
+command.
 Valid arguments are:
 .RS
 .TP
 Valid arguments are:
 .RS
 .TP
@@ -459,36 +463,6 @@ above).
 The initial value for this toggle is TRUE in \*(lqline by line\*(rq mode,
 and FALSE in \*(lqcharacter at a time\*(rq mode.
 .TP
 The initial value for this toggle is TRUE in \*(lqline by line\*(rq mode,
 and FALSE in \*(lqcharacter at a time\*(rq mode.
 .TP
-.I autosynch
-If
-.I autosynch
-and
-.I localsigs
-are both
-TRUE,
-then when either the
-.I intr
-or
-.I quit
-characters is typed (see
-.B set
-above for descriptions of the
-.I intr
-and
-.I quit
-characters), the resulting
-.B TELNET
-sequence sent is followed by the
-.B TELNET SYNCH
-sequence.
-This procedure
-.B should
-cause the remote system to begin throwing away all previously
-typed input until both of the
-.B TELNET
-sequences have been read and acted upon.
-The initial value of this toggle is FALSE.
-.TP
 .I autoflush
 .br
 If
 .I autoflush
 .br
 If
@@ -520,6 +494,36 @@ The initial value for this toggle is TRUE if the terminal user had not
 done an "stty noflsh", otherwise FALSE (see
 .IR stty(1)).
 .TP
 done an "stty noflsh", otherwise FALSE (see
 .IR stty(1)).
 .TP
+.I autosynch
+If
+.I autosynch
+and
+.I localchars
+are both
+TRUE,
+then when either the
+.I intr
+or
+.I quit
+characters is typed (see
+.B set
+above for descriptions of the
+.I intr
+and
+.I quit
+characters), the resulting
+.B TELNET
+sequence sent is followed by the
+.B TELNET SYNCH
+sequence.
+This procedure
+.B should
+cause the remote system to begin throwing away all previously
+typed input until both of the
+.B TELNET
+sequences have been read and acted upon.
+The initial value of this toggle is FALSE.
+.TP
 .I crmod
 .br
 Toggle carriage return mode.
 .I crmod
 .br
 Toggle carriage return mode.