xref: /freebsd/usr.bin/morse/morse.6 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
16ae1554aSColin Percival.\" Copyright (c) 2000 Alexey Zelkin.  All rights reserved.
26ae1554aSColin Percival.\" Copyright (c) 1988, 1991, 1993
36ae1554aSColin Percival.\"	The Regents of the University of California.  All rights reserved.
46ae1554aSColin Percival.\"
56ae1554aSColin Percival.\" Redistribution and use in source and binary forms, with or without
66ae1554aSColin Percival.\" modification, are permitted provided that the following conditions
76ae1554aSColin Percival.\" are met:
86ae1554aSColin Percival.\" 1. Redistributions of source code must retain the above copyright
96ae1554aSColin Percival.\"    notice, this list of conditions and the following disclaimer.
106ae1554aSColin Percival.\" 2. Redistributions in binary form must reproduce the above copyright
116ae1554aSColin Percival.\"    notice, this list of conditions and the following disclaimer in the
126ae1554aSColin Percival.\"    documentation and/or other materials provided with the distribution.
136ae1554aSColin Percival.\" 3. Neither the name of the University nor the names of its contributors
146ae1554aSColin Percival.\"    may be used to endorse or promote products derived from this software
156ae1554aSColin Percival.\"    without specific prior written permission.
166ae1554aSColin Percival.\"
176ae1554aSColin Percival.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
186ae1554aSColin Percival.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
196ae1554aSColin Percival.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
206ae1554aSColin Percival.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
216ae1554aSColin Percival.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
226ae1554aSColin Percival.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
236ae1554aSColin Percival.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
246ae1554aSColin Percival.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
256ae1554aSColin Percival.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
266ae1554aSColin Percival.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
276ae1554aSColin Percival.\" SUCH DAMAGE.
286ae1554aSColin Percival.\"
29*82a036d8SGordon Bergling.Dd April 16, 2023
306ae1554aSColin Percival.Dt MORSE 6
316ae1554aSColin Percival.Os
326ae1554aSColin Percival.Sh NAME
336ae1554aSColin Percival.Nm morse
346ae1554aSColin Percival.Nd reformat input as morse code
356ae1554aSColin Percival.Sh SYNOPSIS
366ae1554aSColin Percival.Nm
3790daf402SEitan Adler.Op Fl elrps
386ae1554aSColin Percival.Op Fl d Ar device
396ae1554aSColin Percival.Op Fl w Ar speed
406ae1554aSColin Percival.Op Fl c Ar speed
416ae1554aSColin Percival.Op Fl f Ar frequency
426ae1554aSColin Percival.Op Ar string ...
436ae1554aSColin Percival.Sh DESCRIPTION
446ae1554aSColin PercivalThe
456ae1554aSColin Percival.Nm
466ae1554aSColin Percivalcommand reads the given input and reformats it in the form of morse code.
476ae1554aSColin PercivalAcceptable input are command line arguments or the standard input.
486ae1554aSColin Percival.Pp
496ae1554aSColin PercivalAvailable options:
506ae1554aSColin Percival.Bl -tag -width indent
516ae1554aSColin Percival.It Fl l
526ae1554aSColin PercivalThe
536ae1554aSColin Percival.Fl l
546ae1554aSColin Percivaloption produces output suitable for
556ae1554aSColin Percival.Xr led 4
566ae1554aSColin Percivaldevices.
576ae1554aSColin Percival.It Fl s
586ae1554aSColin PercivalThe
596ae1554aSColin Percival.Fl s
606ae1554aSColin Percivaloption produces dots and dashes rather than words.
616ae1554aSColin Percival.It Fl p
626ae1554aSColin PercivalSend morse the real way.
636ae1554aSColin PercivalThis only works if your system has
646ae1554aSColin Percival.Xr speaker 4
656ae1554aSColin Percivalsupport.
666ae1554aSColin Percival.It Fl w Ar speed
676ae1554aSColin PercivalSet the sending speed in words per minute.
686ae1554aSColin PercivalIf not specified, the default
696ae1554aSColin Percivalspeed of 20 WPM is used.
706ae1554aSColin Percival.It Fl c Ar speed
716ae1554aSColin PercivalFarnsworth support.
726ae1554aSColin PercivalSet the spacing between characters in words per minute.
736ae1554aSColin PercivalThis is independent of the speed
746ae1554aSColin Percivalthat the individual characters are sent.
756ae1554aSColin PercivalIf not specified, defaults to the effective value of the
766ae1554aSColin Percival.Fl w
776ae1554aSColin Percivaloption.
786ae1554aSColin Percival.It Fl f Ar frequency
796ae1554aSColin PercivalSet the sidetone frequency to something other than the default 600 Hz.
806ae1554aSColin Percival.It Fl d Ar device
816ae1554aSColin PercivalSimilar to
826ae1554aSColin Percival.Fl p ,
836ae1554aSColin Percivalbut use the RTS line of
846ae1554aSColin Percival.Ar device
851796f7b1SEitan Adler(which must be a TTY device)
866ae1554aSColin Percivalin order to emit the morse code.
876ae1554aSColin Percival.It Fl e
886ae1554aSColin PercivalEcho each character before it is sent, used together with either
896ae1554aSColin Percival.Fl p
906ae1554aSColin Percivalor
916ae1554aSColin Percival.Fl d .
9290daf402SEitan Adler.It Fl r
93d2133121SEitan AdlerDecode morse output consisting of dots and dashes (as generated by using
94d2133121SEitan Adlerthe
95d2133121SEitan Adler.Fl s
96d2133121SEitan Adleroption).
976ae1554aSColin Percival.El
986ae1554aSColin Percival.Pp
996ae1554aSColin PercivalThe
1006ae1554aSColin Percival.Fl w , c
1016ae1554aSColin Percivaland
1026ae1554aSColin Percival.Fl f
1036ae1554aSColin Percivalflags only work in conjunction with either the
1046ae1554aSColin Percival.Fl p
1056ae1554aSColin Percivalor the
1066ae1554aSColin Percival.Fl d
1076ae1554aSColin Percivalflag.
1086ae1554aSColin Percival.Pp
1096ae1554aSColin PercivalNot all prosigns have corresponding characters.
1106ae1554aSColin PercivalUse
1116ae1554aSColin Percival.Ql #
1126ae1554aSColin Percivalfor
1136ae1554aSColin Percival.Em AS ,
1146ae1554aSColin Percival.Ql &
1156ae1554aSColin Percivalfor
1166ae1554aSColin Percival.Em SK ,
1176ae1554aSColin Percival.Ql *
1186ae1554aSColin Percivalfor
1196ae1554aSColin Percival.Em VE
1206ae1554aSColin Percivaland
1216ae1554aSColin Percival.Ql %
1226ae1554aSColin Percivalfor
1236ae1554aSColin Percival.Em BK .
1246ae1554aSColin PercivalThe more common prosigns are
1256ae1554aSColin Percival.Ql =
1266ae1554aSColin Percivalfor
1276ae1554aSColin Percival.Em BT ,
1286ae1554aSColin Percival.Ql \&(
1296ae1554aSColin Percivalfor
1306ae1554aSColin Percival.Em KN
1316ae1554aSColin Percivaland
1326ae1554aSColin Percival.Ql +
1336ae1554aSColin Percivalfor
1346ae1554aSColin Percival.Em AR .
1356ae1554aSColin Percival.Pp
1366ae1554aSColin PercivalUsing the
1376ae1554aSColin Percival.Fl d
1386ae1554aSColin Percivalflag,
1396ae1554aSColin Percivalit is possible to key an external device, like a sidetone generator with
1406ae1554aSColin Percivala headset for training purposes, or even your ham radio transceiver.
1416ae1554aSColin PercivalFor
1426ae1554aSColin Percivalthe latter, simply connect an NPN transistor to the serial port
1436ae1554aSColin Percival.Ar device ,
1446ae1554aSColin Percivalemitter connected to ground, base connected through a resistor
1456ae1554aSColin Percival(few kiloohms) to RTS, collector to the key line of your transceiver
1466ae1554aSColin Percival(assuming the transceiver has a positive key supply voltage and is keyed
1476ae1554aSColin Percivalby grounding the key input line).
1486ae1554aSColin PercivalA capacitor (some nanofarads) between
1496ae1554aSColin Percivalbase and ground is advisable to keep stray RF away,
1506ae1554aSColin Percivaland to suppress the
1516ae1554aSColin Percivalminor glitch that is generated during program startup.
1526ae1554aSColin Percival.Sh ENVIRONMENT
1536ae1554aSColin PercivalYour
1546ae1554aSColin Percival.Ev LC_CTYPE
1556ae1554aSColin Percivallocale codeset determines how
1566ae1554aSColin Percivalcharacters with the high-order bit set
1576ae1554aSColin Percivalare interpreted.
1586ae1554aSColin Percival.Pp
1596ae1554aSColin Percival.Bl -tag -width ".Li ISO8859-15" -compact
1606ae1554aSColin Percival.It Li ISO8859-1
1616ae1554aSColin Percival.It Li ISO8859-15
1626ae1554aSColin PercivalInterpret characters with the high-order bit set as Western European characters.
1636ae1554aSColin Percival.Pp
1646ae1554aSColin Percival.It Li KOI8-R
1656ae1554aSColin PercivalInterpret characters with the high-order bit set as Cyrillic characters.
1666ae1554aSColin Percival.Pp
1676ae1554aSColin Percival.It Li ISO8859-7
1686ae1554aSColin PercivalInterpret characters with the high-order bit set as Greek characters.
1696ae1554aSColin Percival.El
1706ae1554aSColin Percival.Sh FILES
1716ae1554aSColin Percival.Bl -tag -width ".Pa /dev/speaker" -compact
1726ae1554aSColin Percival.It Pa /dev/speaker
1736ae1554aSColin Percival.Xr speaker 4
1746ae1554aSColin Percivaldevice file
1756ae1554aSColin Percival.El
1766ae1554aSColin Percival.Sh SEE ALSO
1776ae1554aSColin Percival.Xr speaker 4
178*82a036d8SGordon Bergling.Rs
179*82a036d8SGordon Bergling.%I ITU-T Recommendation F.1
180*82a036d8SGordon Bergling.%R "Operational provisions for the international public telegram service"
181*82a036d8SGordon Bergling.%O Division B, I. Morse code
182*82a036d8SGordon Bergling.Re
183*82a036d8SGordon Bergling.Rs
184*82a036d8SGordon Bergling.%I ITU-R M.1677-1
185*82a036d8SGordon Bergling.%R International Morse code
186*82a036d8SGordon Bergling.%D 2009
187*82a036d8SGordon Bergling.%U https://www.itu.int/rec/R-REC-M.1677-1-200910-I/
188*82a036d8SGordon Bergling.Re
1896ae1554aSColin Percival.Sh HISTORY
1906ae1554aSColin PercivalSound support for
1916ae1554aSColin Percival.Nm
1926ae1554aSColin Percivaladded by
1936ae1554aSColin Percival.An Lyndon Nerenberg (VE6BBM) Aq Mt lyndon@orthanc.ca .
1946ae1554aSColin Percival.Pp
1956ae1554aSColin PercivalAbility to key an external device added by
1966ae1554aSColin Percival.An J\(:org Wunsch
1976ae1554aSColin Percival(DL8DTL).
1986ae1554aSColin Percival.Pp
1996ae1554aSColin PercivalFarnsworth support for
2006ae1554aSColin Percival.Nm
2016ae1554aSColin Percivaladded by
2026ae1554aSColin Percival.An Stephen Cravey (N5UUU) .
2036ae1554aSColin Percival.Sh BUGS
2046ae1554aSColin PercivalOnly understands a few European characters
2056ae1554aSColin Percival(German and French),
2066ae1554aSColin Percivalno Asian characters,
2076ae1554aSColin Percivaland no continental landline code.
2086ae1554aSColin Percival.Pp
2096ae1554aSColin PercivalSends a bit slower than it should due to system overhead.
2106ae1554aSColin PercivalSome people would call this a feature.
211