fix usage stmt, make clear flags and f are bsd extensions to posix
authorCynthia A. E. Livingston <cael@ucbvax.Berkeley.EDU>
Sat, 9 Nov 1991 07:07:08 +0000 (23:07 -0800)
committerCynthia A. E. Livingston <cael@ucbvax.Berkeley.EDU>
Sat, 9 Nov 1991 07:07:08 +0000 (23:07 -0800)
SCCS-vsn: bin/stty/stty.1 6.15
SCCS-vsn: bin/stty/stty.c 5.30

usr/src/bin/stty/stty.1
usr/src/bin/stty/stty.c

index f5d6c32..10fd234 100644 (file)
@@ -6,7 +6,7 @@
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)stty.1     6.14 (Berkeley) %G%
+.\"     @(#)stty.1     6.15 (Berkeley) %G%
 .\"
 .Dd 
 .Dt STTY 1
 .\"
 .Dd 
 .Dt STTY 1
@@ -20,7 +20,7 @@
 .Op Fl f Ar file
 .Op operands
 .Sh DESCRIPTION
 .Op Fl f Ar file
 .Op operands
 .Sh DESCRIPTION
-The 
+The
 .Nm stty
 utility sets or reports on terminal
 characteristics for the device that is its standard input.
 .Nm stty
 utility sets or reports on terminal
 characteristics for the device that is its standard input.
@@ -35,11 +35,11 @@ exclusive on some terminal types.
 The following options are available:
 .Bl -tag -width Ds
 .It Fl a
 The following options are available:
 .Bl -tag -width Ds
 .It Fl a
-Display all the current settings for the terminal to standard output 
-in the
+Display all the current settings for the terminal to standard output
+as per
 .St -p1003.2 .
 .It Fl e
 .St -p1003.2 .
 .It Fl e
-Display all the current settings for the terminal to standard output 
+Display all the current settings for the terminal to standard output
 in the traditional
 .Tn BSD
 ``all'' and ``everything'' formats.
 in the traditional
 .Tn BSD
 ``all'' and ``everything'' formats.
@@ -47,10 +47,11 @@ in the traditional
 Display the current settings for the terminal named by
 .Ar file .
 .It Fl g
 Display the current settings for the terminal named by
 .Ar file .
 .It Fl g
-Display all the current settings for the terminal to standard output 
+Display all the current settings for the terminal to standard output
 in a form that may be used as an argument to a subsequent invocation of
 .Nm stty
 in a form that may be used as an argument to a subsequent invocation of
 .Nm stty
-to restore the current terminal state.
+to restore the current terminal state as per
+.St -p1003.2.
 .El
 .Pp
 The following arguments are available to set the terminal
 .El
 .Pp
 The following arguments are available to set the terminal
@@ -282,4 +283,9 @@ The
 .Nm stty
 function is expected to be
 .St -p1003.2
 .Nm stty
 function is expected to be
 .St -p1003.2
-compatible.
+compatible.  The flags
+.Fl e
+and
+.Fl f
+are \*(Bx
+extensions to the standard.
index 0c04111..382457f 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)stty.c     5.29 (Berkeley) %G%";
+static char sccsid[] = "@(#)stty.c     5.30 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -26,7 +26,7 @@ static char sccsid[] = "@(#)stty.c    5.29 (Berkeley) %G%";
 #include "stty.h"
 #include "extern.h"
 
 #include "stty.h"
 #include "extern.h"
 
-char *usage = "usage: stty: [-eg] [-f file] [options]";
+char *usage = "usage: stty: [-aefg] [-f file] [options]";
 
 main(argc, argv) 
        int argc;
 
 main(argc, argv) 
        int argc;