]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - games/bcd/bcd.6
This commit was generated by cvs2svn to compensate for changes in r68325,
[FreeBSD/FreeBSD.git] / games / bcd / bcd.6
1 .\" Copyright (c) 1988, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)bcd.6       8.1 (Berkeley) 5/31/93
33 .\" $FreeBSD$
34 .\"
35 .Dd May 31, 1993
36 .Dt "BCD" 6
37 .Os
38 .Sh NAME
39 .Nm bcd ,
40 .Nm ppt ,
41 .Nm morse
42 .Nd "reformat input as punch cards, paper tape or morse code"
43 .Sh SYNOPSIS
44 .Nm bcd
45 .Op Ar string ...
46 .Nm ppt
47 .Op Ar string ...
48 .Nm morse
49 .Op Fl p
50 .Op Fl d Ar device
51 .Op Fl e
52 .Op Fl w Ar speed
53 .Op Fl f Ar frequency
54 .Op Fl s
55 .Op Ar string ...
56 .Sh DESCRIPTION
57 The commands
58 .Nm bcd ,
59 .Nm ppt
60 and
61 .Nm morse
62 read the given input and reformat it in the form of punched cards,
63 paper tape or morse code respectively.
64 Acceptable input are command line arguments or the standard input.
65 .Pp
66 Available options for program
67 .Nm morse :
68 .Bl -tag -width flag
69 .It Fl s
70 The
71 .Fl s
72 option produces dots and dashes rather than words.
73 .It Fl p
74 Send morse the real way. This only works if your system has
75 .Xr speaker 4
76 support.
77 .It Fl w Ar speed
78 Set the sending speed in words per minute. If not specified the default
79 speed of 20 WPM is used.
80 .It Fl f Ar frequency
81 Set the sidetone frequency to something other than the default 600 Hz.
82 .It Fl d Ar device
83 Similar to
84 .Fl p ,
85 but use the RTS line of
86 .Ar device
87 .Pq which must by a tty device
88 in order to emit the morse code.
89 .It Fl e
90 echo each character before it is sent, used together with either
91 .Fl p
92 or
93 .Fl d .
94 .El
95 .Pp
96 The
97 .Fl w
98 and
99 .Fl f
100 flags only work in conjunction with either the
101 .Fl p
102 or the
103 .Fl d
104 flag.
105 .Pp
106 Not all prosigns have corresponding characters. Use
107 .Ql #
108 for
109 .Em AS ,
110 .Ql @
111 for 
112 .Em SK ,
113 .Ql *
114 for
115 .Em VE
116 and
117 .Ql %
118 for
119 .Em BK .
120 The more common prosigns are
121 .Ql =
122 for
123 .Em BT ,
124 .Ql (
125 for
126 .Em KN
127 and
128 .Ql +
129 for
130 .Em AR .
131 .Pp
132 Using flag
133 .Fl d Ar device
134 it is possible to key an external device, like a sidetone generator with
135 a headset for training purposes, or even your ham radio transceiver.  For
136 the latter, simply connect an NPN transistor to the serial port
137 .Ar device ,
138 emitter connected to ground, base connected through a resistor
139 (few kiloohms) to RTS, collector to the key line of your transceiver
140 (assuming the transceiver has a positive key supply voltage and is keyed
141 by grounding the key input line).  A capacitor (some nanofarads) between
142 base and ground is advisable to keep stray RF away, and to supress the
143 minor glitch that is generated during program startup.
144 .Sh FILES
145 .Bl -tag -width /dev/speaker -compact
146 .It Pa /dev/speaker
147 speaker device file
148 .El
149 .Sh ENVIRONMENT
150 .Bl -tag -width LC_CTYPE
151 .Pp
152 For
153 .Nm morse
154 only:
155 .It Ev LC_CTYPE
156 .It Ev LC_ALL
157 .It Ev LANG
158 If one of these variables (in this priority) is set to a locale ending in
159 .Ql KOI8-R ,
160 characters with the high-order bit set are being interpreted as
161 Cyrillic characters.  In all other cases, they are being interpreted
162 as belonging to the
163 .Ql ISO_8859-1
164 character set.
165 .Sh SEE ALSO
166 .Xr speaker 4
167 .Sh HISTORY
168 Sound support for
169 .Nm morse
170 added by Lyndon Nerenberg (VE7TCP/VE6BBM) <lyndon@orthanc.com>.
171 .Pp
172 Ability to key an external device added by
173 .ie t J\(:org Wunsch
174 .el Joerg Wunsch
175 (DL8DTL).
176 .Sh BUGS
177 Does only understand a few European characters (namely German and
178 French), but neither Asian ones, or the continental landline code.
179 .Pp
180 Sends a bit slower than it should due to system overhead. Some people
181 would call this a feature.