xref: /freebsd/usr.bin/morse/morse.6 (revision 6ae1554a5d9b318f8ad53ccc39fa5a961403da73)
1*6ae1554aSColin Percival.\" Copyright (c) 2000 Alexey Zelkin.  All rights reserved.
2*6ae1554aSColin Percival.\" Copyright (c) 1988, 1991, 1993
3*6ae1554aSColin Percival.\"	The Regents of the University of California.  All rights reserved.
4*6ae1554aSColin Percival.\"
5*6ae1554aSColin Percival.\" Redistribution and use in source and binary forms, with or without
6*6ae1554aSColin Percival.\" modification, are permitted provided that the following conditions
7*6ae1554aSColin Percival.\" are met:
8*6ae1554aSColin Percival.\" 1. Redistributions of source code must retain the above copyright
9*6ae1554aSColin Percival.\"    notice, this list of conditions and the following disclaimer.
10*6ae1554aSColin Percival.\" 2. Redistributions in binary form must reproduce the above copyright
11*6ae1554aSColin Percival.\"    notice, this list of conditions and the following disclaimer in the
12*6ae1554aSColin Percival.\"    documentation and/or other materials provided with the distribution.
13*6ae1554aSColin Percival.\" 3. Neither the name of the University nor the names of its contributors
14*6ae1554aSColin Percival.\"    may be used to endorse or promote products derived from this software
15*6ae1554aSColin Percival.\"    without specific prior written permission.
16*6ae1554aSColin Percival.\"
17*6ae1554aSColin Percival.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18*6ae1554aSColin Percival.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19*6ae1554aSColin Percival.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20*6ae1554aSColin Percival.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21*6ae1554aSColin Percival.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22*6ae1554aSColin Percival.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23*6ae1554aSColin Percival.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24*6ae1554aSColin Percival.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25*6ae1554aSColin Percival.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26*6ae1554aSColin Percival.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27*6ae1554aSColin Percival.\" SUCH DAMAGE.
28*6ae1554aSColin Percival.\"
29*6ae1554aSColin Percival.\"	@(#)bcd.6	8.1 (Berkeley) 5/31/93
30*6ae1554aSColin Percival.\" $FreeBSD$
31*6ae1554aSColin Percival.\"
32*6ae1554aSColin Percival.Dd June 7, 2005
33*6ae1554aSColin Percival.Dt MORSE 6
34*6ae1554aSColin Percival.Os
35*6ae1554aSColin Percival.Sh NAME
36*6ae1554aSColin Percival.Nm morse
37*6ae1554aSColin Percival.Nd reformat input as morse code
38*6ae1554aSColin Percival.Sh SYNOPSIS
39*6ae1554aSColin Percival.Nm
40*6ae1554aSColin Percival.Op Fl elps
41*6ae1554aSColin Percival.Op Fl d Ar device
42*6ae1554aSColin Percival.Op Fl w Ar speed
43*6ae1554aSColin Percival.Op Fl c Ar speed
44*6ae1554aSColin Percival.Op Fl f Ar frequency
45*6ae1554aSColin Percival.Op Ar string ...
46*6ae1554aSColin Percival.Sh DESCRIPTION
47*6ae1554aSColin PercivalThe
48*6ae1554aSColin Percival.Nm
49*6ae1554aSColin Percivalcommand reads the given input and reformats it in the form of morse code.
50*6ae1554aSColin PercivalAcceptable input are command line arguments or the standard input.
51*6ae1554aSColin Percival.Pp
52*6ae1554aSColin PercivalAvailable options:
53*6ae1554aSColin Percival.Bl -tag -width indent
54*6ae1554aSColin Percival.It Fl l
55*6ae1554aSColin PercivalThe
56*6ae1554aSColin Percival.Fl l
57*6ae1554aSColin Percivaloption produces output suitable for
58*6ae1554aSColin Percival.Xr led 4
59*6ae1554aSColin Percivaldevices.
60*6ae1554aSColin Percival.It Fl s
61*6ae1554aSColin PercivalThe
62*6ae1554aSColin Percival.Fl s
63*6ae1554aSColin Percivaloption produces dots and dashes rather than words.
64*6ae1554aSColin Percival.It Fl p
65*6ae1554aSColin PercivalSend morse the real way.
66*6ae1554aSColin PercivalThis only works if your system has
67*6ae1554aSColin Percival.Xr speaker 4
68*6ae1554aSColin Percivalsupport.
69*6ae1554aSColin Percival.It Fl w Ar speed
70*6ae1554aSColin PercivalSet the sending speed in words per minute.
71*6ae1554aSColin PercivalIf not specified, the default
72*6ae1554aSColin Percivalspeed of 20 WPM is used.
73*6ae1554aSColin Percival.It Fl c Ar speed
74*6ae1554aSColin PercivalFarnsworth support.
75*6ae1554aSColin PercivalSet the spacing between characters in words per minute.
76*6ae1554aSColin PercivalThis is independent of the speed
77*6ae1554aSColin Percivalthat the individual characters are sent.
78*6ae1554aSColin PercivalIf not specified, defaults to the effective value of the
79*6ae1554aSColin Percival.Fl w
80*6ae1554aSColin Percivaloption.
81*6ae1554aSColin Percival.It Fl f Ar frequency
82*6ae1554aSColin PercivalSet the sidetone frequency to something other than the default 600 Hz.
83*6ae1554aSColin Percival.It Fl d Ar device
84*6ae1554aSColin PercivalSimilar to
85*6ae1554aSColin Percival.Fl p ,
86*6ae1554aSColin Percivalbut use the RTS line of
87*6ae1554aSColin Percival.Ar device
88*6ae1554aSColin Percival(which must by a TTY device)
89*6ae1554aSColin Percivalin order to emit the morse code.
90*6ae1554aSColin Percival.It Fl e
91*6ae1554aSColin PercivalEcho each character before it is sent, used together with either
92*6ae1554aSColin Percival.Fl p
93*6ae1554aSColin Percivalor
94*6ae1554aSColin Percival.Fl d .
95*6ae1554aSColin Percival.El
96*6ae1554aSColin Percival.Pp
97*6ae1554aSColin PercivalThe
98*6ae1554aSColin Percival.Fl w , c
99*6ae1554aSColin Percivaland
100*6ae1554aSColin Percival.Fl f
101*6ae1554aSColin Percivalflags only work in conjunction with either the
102*6ae1554aSColin Percival.Fl p
103*6ae1554aSColin Percivalor the
104*6ae1554aSColin Percival.Fl d
105*6ae1554aSColin Percivalflag.
106*6ae1554aSColin Percival.Pp
107*6ae1554aSColin PercivalNot all prosigns have corresponding characters.
108*6ae1554aSColin PercivalUse
109*6ae1554aSColin Percival.Ql #
110*6ae1554aSColin Percivalfor
111*6ae1554aSColin Percival.Em AS ,
112*6ae1554aSColin Percival.Ql &
113*6ae1554aSColin Percivalfor
114*6ae1554aSColin Percival.Em SK ,
115*6ae1554aSColin Percival.Ql *
116*6ae1554aSColin Percivalfor
117*6ae1554aSColin Percival.Em VE
118*6ae1554aSColin Percivaland
119*6ae1554aSColin Percival.Ql %
120*6ae1554aSColin Percivalfor
121*6ae1554aSColin Percival.Em BK .
122*6ae1554aSColin PercivalThe more common prosigns are
123*6ae1554aSColin Percival.Ql =
124*6ae1554aSColin Percivalfor
125*6ae1554aSColin Percival.Em BT ,
126*6ae1554aSColin Percival.Ql \&(
127*6ae1554aSColin Percivalfor
128*6ae1554aSColin Percival.Em KN
129*6ae1554aSColin Percivaland
130*6ae1554aSColin Percival.Ql +
131*6ae1554aSColin Percivalfor
132*6ae1554aSColin Percival.Em AR .
133*6ae1554aSColin Percival.Pp
134*6ae1554aSColin PercivalUsing the
135*6ae1554aSColin Percival.Fl d
136*6ae1554aSColin Percivalflag,
137*6ae1554aSColin Percivalit is possible to key an external device, like a sidetone generator with
138*6ae1554aSColin Percivala headset for training purposes, or even your ham radio transceiver.
139*6ae1554aSColin PercivalFor
140*6ae1554aSColin Percivalthe latter, simply connect an NPN transistor to the serial port
141*6ae1554aSColin Percival.Ar device ,
142*6ae1554aSColin Percivalemitter connected to ground, base connected through a resistor
143*6ae1554aSColin Percival(few kiloohms) to RTS, collector to the key line of your transceiver
144*6ae1554aSColin Percival(assuming the transceiver has a positive key supply voltage and is keyed
145*6ae1554aSColin Percivalby grounding the key input line).
146*6ae1554aSColin PercivalA capacitor (some nanofarads) between
147*6ae1554aSColin Percivalbase and ground is advisable to keep stray RF away,
148*6ae1554aSColin Percivaland to suppress the
149*6ae1554aSColin Percivalminor glitch that is generated during program startup.
150*6ae1554aSColin Percival.Sh ENVIRONMENT
151*6ae1554aSColin PercivalYour
152*6ae1554aSColin Percival.Ev LC_CTYPE
153*6ae1554aSColin Percivallocale codeset determines how
154*6ae1554aSColin Percivalcharacters with the high-order bit set
155*6ae1554aSColin Percivalare interpreted.
156*6ae1554aSColin Percival.Pp
157*6ae1554aSColin Percival.Bl -tag -width ".Li ISO8859-15" -compact
158*6ae1554aSColin Percival.It Li ISO8859-1
159*6ae1554aSColin Percival.It Li ISO8859-15
160*6ae1554aSColin PercivalInterpret characters with the high-order bit set as Western European characters.
161*6ae1554aSColin Percival.Pp
162*6ae1554aSColin Percival.It Li KOI8-R
163*6ae1554aSColin PercivalInterpret characters with the high-order bit set as Cyrillic characters.
164*6ae1554aSColin Percival.Pp
165*6ae1554aSColin Percival.It Li ISO8859-7
166*6ae1554aSColin PercivalInterpret characters with the high-order bit set as Greek characters.
167*6ae1554aSColin Percival.El
168*6ae1554aSColin Percival.Sh FILES
169*6ae1554aSColin Percival.Bl -tag -width ".Pa /dev/speaker" -compact
170*6ae1554aSColin Percival.It Pa /dev/speaker
171*6ae1554aSColin Percival.Xr speaker 4
172*6ae1554aSColin Percivaldevice file
173*6ae1554aSColin Percival.El
174*6ae1554aSColin Percival.Sh SEE ALSO
175*6ae1554aSColin Percival.Xr speaker 4
176*6ae1554aSColin Percival.Sh HISTORY
177*6ae1554aSColin PercivalSound support for
178*6ae1554aSColin Percival.Nm
179*6ae1554aSColin Percivaladded by
180*6ae1554aSColin Percival.An Lyndon Nerenberg (VE6BBM) Aq Mt lyndon@orthanc.ca .
181*6ae1554aSColin Percival.Pp
182*6ae1554aSColin PercivalAbility to key an external device added by
183*6ae1554aSColin Percival.An J\(:org Wunsch
184*6ae1554aSColin Percival(DL8DTL).
185*6ae1554aSColin Percival.Pp
186*6ae1554aSColin PercivalFarnsworth support for
187*6ae1554aSColin Percival.Nm
188*6ae1554aSColin Percivaladded by
189*6ae1554aSColin Percival.An Stephen Cravey (N5UUU).
190*6ae1554aSColin Percival.Sh BUGS
191*6ae1554aSColin PercivalOnly understands a few European characters
192*6ae1554aSColin Percival(German and French),
193*6ae1554aSColin Percivalno Asian characters,
194*6ae1554aSColin Percivaland no continental landline code.
195*6ae1554aSColin Percival.Pp
196*6ae1554aSColin PercivalSends a bit slower than it should due to system overhead.
197*6ae1554aSColin PercivalSome people would call this a feature.
198