SCCS-vsn: bin/stty/stty.1 6.15
SCCS-vsn: bin/stty/stty.c 5.30
.\"
.\" %sccs.include.redist.man%
.\"
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)stty.1 6.14 (Berkeley) %G%
+.\" @(#)stty.1 6.15 (Berkeley) %G%
.Op Fl f Ar file
.Op operands
.Sh DESCRIPTION
.Op Fl f Ar file
.Op operands
.Sh DESCRIPTION
.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.
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
-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.
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
.Nm stty
function is expected to be
.St -p1003.2
.Nm stty
function is expected to be
.St -p1003.2
+compatible. The flags
+.Fl e
+and
+.Fl f
+are \*(Bx
+extensions to the standard.
#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>
#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;