diff options
author | wiz <wiz@NetBSD.org> | 2021-04-22 14:57:36 +0000 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-04-28 16:38:43 -0400 |
commit | b9f9ac402c70812f3d5c026df36818b288af2aab (patch) | |
tree | 059d4c8e0ed18f5e64cff1645d47572006596247 /cgram/cgram.6 | |
parent | bedd1da4f697c509582246e285e628844e77e140 (diff) | |
download | bsdgames-darwin-b9f9ac402c70812f3d5c026df36818b288af2aab.tar.gz bsdgames-darwin-b9f9ac402c70812f3d5c026df36818b288af2aab.tar.zst bsdgames-darwin-b9f9ac402c70812f3d5c026df36818b288af2aab.zip |
cgram: allow providing an input file instead of the random fortune
Diffstat (limited to 'cgram/cgram.6')
-rw-r--r-- | cgram/cgram.6 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cgram/cgram.6 b/cgram/cgram.6 index 9f315804..88b6f8e7 100644 --- a/cgram/cgram.6 +++ b/cgram/cgram.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: cgram.6,v 1.2 2013/08/04 07:55:09 wiz Exp $ +.\" $NetBSD: cgram.6,v 1.3 2021/04/22 14:57:36 wiz Exp $ .\" .\" Copyright (c) 2004, 2013 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,21 +27,24 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 3, 2013 +.Dd April 22, 2021 .Dt CGRAM 6 .Os .Sh NAME .Nm cgram .Nd solve Sunday-paper cryptograms .Sh SYNOPSIS -.Nm +.Nm Op Ar file .Sh DESCRIPTION .Nm is a curses-based widget for solving Sunday-paper-type cryptograms based on substitution ciphers. -A random cleartext is chosen using -.Xr fortune 6 -and a random substitution key is generated. +If +.Ar file +is given, it is used as cleartext, otherwise a random cleartext is +chosen using +.Xr fortune 6 ; +either way, a random substitution key is generated. .Pp The ciphertext is displayed. Typing a letter changes the key so that the letter under the cursor |