.\" Copyright (c) 1980, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
-.\" %sccs.include.proprietary.man%
+.\" This module is believed to contain source code proprietary to AT&T.
+.\" Use and redistribution is subject to the Berkeley Software License
+.\" Agreement and your Software Agreement with AT&T (Western Electric).
.\"
-.\" @(#)ed.1 6.8 (Berkeley) %G%
+.\" @(#)ed.1 6.8 (Berkeley) 12/5/92
.\"
-.Dd
+.Dd December 5, 1992
.Dt ED 1
.Os ATT 7th
.Sh NAME
.Sh SYNOPSIS
.Nm \&ed
.Op Fl
+.Op Fl \&x
.Op Ar file
.Sh DESCRIPTION
.Nm \&Ed
the file is read into
.Nm \&ed Ns 's
buffer so that it can be edited.
+.Pp
+Available options:
+.Bl -tag -width Ds
+.It Fl \&x
+An
+.Cm \&x
+command is simulated first to handle an encrypted file.
.It Fl
Suppresses the printing
of explanatory output
exiting the editor
after the file is written.
.Pp
+.It \&x
+A key string is demanded from the standard input.
+Later
+.Cm \&r , \&e
+and
+.Cm \&w
+commands will encrypt and decrypt the text
+with this key by the algorithm of
+.Xr crypt 1 .
+An explicitly empty key turns off encryption.
+.Pp
.It Xo
.Po Ad \&.+1
.Pc Ns Cm \&z
The
.Cm \&undo
command causes marks to be lost on affected lines.
+.br
+The
+.Cm \&x
+command,
+.Fl \&x
+option,
+and
+special treatment of hangups
+only work on
+.Ux .