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.\" 296ae1554aSColin Percival.\" @(#)bcd.6 8.1 (Berkeley) 5/31/93 306ae1554aSColin Percival.\" $FreeBSD$ 316ae1554aSColin Percival.\" 326ae1554aSColin Percival.Dd June 7, 2005 336ae1554aSColin Percival.Dt MORSE 6 346ae1554aSColin Percival.Os 356ae1554aSColin Percival.Sh NAME 366ae1554aSColin Percival.Nm morse 376ae1554aSColin Percival.Nd reformat input as morse code 386ae1554aSColin Percival.Sh SYNOPSIS 396ae1554aSColin Percival.Nm 406ae1554aSColin Percival.Op Fl elps 416ae1554aSColin Percival.Op Fl d Ar device 426ae1554aSColin Percival.Op Fl w Ar speed 436ae1554aSColin Percival.Op Fl c Ar speed 446ae1554aSColin Percival.Op Fl f Ar frequency 456ae1554aSColin Percival.Op Ar string ... 466ae1554aSColin Percival.Sh DESCRIPTION 476ae1554aSColin PercivalThe 486ae1554aSColin Percival.Nm 496ae1554aSColin Percivalcommand reads the given input and reformats it in the form of morse code. 506ae1554aSColin PercivalAcceptable input are command line arguments or the standard input. 516ae1554aSColin Percival.Pp 526ae1554aSColin PercivalAvailable options: 536ae1554aSColin Percival.Bl -tag -width indent 546ae1554aSColin Percival.It Fl l 556ae1554aSColin PercivalThe 566ae1554aSColin Percival.Fl l 576ae1554aSColin Percivaloption produces output suitable for 586ae1554aSColin Percival.Xr led 4 596ae1554aSColin Percivaldevices. 606ae1554aSColin Percival.It Fl s 616ae1554aSColin PercivalThe 626ae1554aSColin Percival.Fl s 636ae1554aSColin Percivaloption produces dots and dashes rather than words. 646ae1554aSColin Percival.It Fl p 656ae1554aSColin PercivalSend morse the real way. 666ae1554aSColin PercivalThis only works if your system has 676ae1554aSColin Percival.Xr speaker 4 686ae1554aSColin Percivalsupport. 696ae1554aSColin Percival.It Fl w Ar speed 706ae1554aSColin PercivalSet the sending speed in words per minute. 716ae1554aSColin PercivalIf not specified, the default 726ae1554aSColin Percivalspeed of 20 WPM is used. 736ae1554aSColin Percival.It Fl c Ar speed 746ae1554aSColin PercivalFarnsworth support. 756ae1554aSColin PercivalSet the spacing between characters in words per minute. 766ae1554aSColin PercivalThis is independent of the speed 776ae1554aSColin Percivalthat the individual characters are sent. 786ae1554aSColin PercivalIf not specified, defaults to the effective value of the 796ae1554aSColin Percival.Fl w 806ae1554aSColin Percivaloption. 816ae1554aSColin Percival.It Fl f Ar frequency 826ae1554aSColin PercivalSet the sidetone frequency to something other than the default 600 Hz. 836ae1554aSColin Percival.It Fl d Ar device 846ae1554aSColin PercivalSimilar to 856ae1554aSColin Percival.Fl p , 866ae1554aSColin Percivalbut use the RTS line of 876ae1554aSColin Percival.Ar device 88*1796f7b1SEitan Adler(which must be a TTY device) 896ae1554aSColin Percivalin order to emit the morse code. 906ae1554aSColin Percival.It Fl e 916ae1554aSColin PercivalEcho each character before it is sent, used together with either 926ae1554aSColin Percival.Fl p 936ae1554aSColin Percivalor 946ae1554aSColin Percival.Fl d . 956ae1554aSColin Percival.El 966ae1554aSColin Percival.Pp 976ae1554aSColin PercivalThe 986ae1554aSColin Percival.Fl w , c 996ae1554aSColin Percivaland 1006ae1554aSColin Percival.Fl f 1016ae1554aSColin Percivalflags only work in conjunction with either the 1026ae1554aSColin Percival.Fl p 1036ae1554aSColin Percivalor the 1046ae1554aSColin Percival.Fl d 1056ae1554aSColin Percivalflag. 1066ae1554aSColin Percival.Pp 1076ae1554aSColin PercivalNot all prosigns have corresponding characters. 1086ae1554aSColin PercivalUse 1096ae1554aSColin Percival.Ql # 1106ae1554aSColin Percivalfor 1116ae1554aSColin Percival.Em AS , 1126ae1554aSColin Percival.Ql & 1136ae1554aSColin Percivalfor 1146ae1554aSColin Percival.Em SK , 1156ae1554aSColin Percival.Ql * 1166ae1554aSColin Percivalfor 1176ae1554aSColin Percival.Em VE 1186ae1554aSColin Percivaland 1196ae1554aSColin Percival.Ql % 1206ae1554aSColin Percivalfor 1216ae1554aSColin Percival.Em BK . 1226ae1554aSColin PercivalThe more common prosigns are 1236ae1554aSColin Percival.Ql = 1246ae1554aSColin Percivalfor 1256ae1554aSColin Percival.Em BT , 1266ae1554aSColin Percival.Ql \&( 1276ae1554aSColin Percivalfor 1286ae1554aSColin Percival.Em KN 1296ae1554aSColin Percivaland 1306ae1554aSColin Percival.Ql + 1316ae1554aSColin Percivalfor 1326ae1554aSColin Percival.Em AR . 1336ae1554aSColin Percival.Pp 1346ae1554aSColin PercivalUsing the 1356ae1554aSColin Percival.Fl d 1366ae1554aSColin Percivalflag, 1376ae1554aSColin Percivalit is possible to key an external device, like a sidetone generator with 1386ae1554aSColin Percivala headset for training purposes, or even your ham radio transceiver. 1396ae1554aSColin PercivalFor 1406ae1554aSColin Percivalthe latter, simply connect an NPN transistor to the serial port 1416ae1554aSColin Percival.Ar device , 1426ae1554aSColin Percivalemitter connected to ground, base connected through a resistor 1436ae1554aSColin Percival(few kiloohms) to RTS, collector to the key line of your transceiver 1446ae1554aSColin Percival(assuming the transceiver has a positive key supply voltage and is keyed 1456ae1554aSColin Percivalby grounding the key input line). 1466ae1554aSColin PercivalA capacitor (some nanofarads) between 1476ae1554aSColin Percivalbase and ground is advisable to keep stray RF away, 1486ae1554aSColin Percivaland to suppress the 1496ae1554aSColin Percivalminor glitch that is generated during program startup. 1506ae1554aSColin Percival.Sh ENVIRONMENT 1516ae1554aSColin PercivalYour 1526ae1554aSColin Percival.Ev LC_CTYPE 1536ae1554aSColin Percivallocale codeset determines how 1546ae1554aSColin Percivalcharacters with the high-order bit set 1556ae1554aSColin Percivalare interpreted. 1566ae1554aSColin Percival.Pp 1576ae1554aSColin Percival.Bl -tag -width ".Li ISO8859-15" -compact 1586ae1554aSColin Percival.It Li ISO8859-1 1596ae1554aSColin Percival.It Li ISO8859-15 1606ae1554aSColin PercivalInterpret characters with the high-order bit set as Western European characters. 1616ae1554aSColin Percival.Pp 1626ae1554aSColin Percival.It Li KOI8-R 1636ae1554aSColin PercivalInterpret characters with the high-order bit set as Cyrillic characters. 1646ae1554aSColin Percival.Pp 1656ae1554aSColin Percival.It Li ISO8859-7 1666ae1554aSColin PercivalInterpret characters with the high-order bit set as Greek characters. 1676ae1554aSColin Percival.El 1686ae1554aSColin Percival.Sh FILES 1696ae1554aSColin Percival.Bl -tag -width ".Pa /dev/speaker" -compact 1706ae1554aSColin Percival.It Pa /dev/speaker 1716ae1554aSColin Percival.Xr speaker 4 1726ae1554aSColin Percivaldevice file 1736ae1554aSColin Percival.El 1746ae1554aSColin Percival.Sh SEE ALSO 1756ae1554aSColin Percival.Xr speaker 4 1766ae1554aSColin Percival.Sh HISTORY 1776ae1554aSColin PercivalSound support for 1786ae1554aSColin Percival.Nm 1796ae1554aSColin Percivaladded by 1806ae1554aSColin Percival.An Lyndon Nerenberg (VE6BBM) Aq Mt lyndon@orthanc.ca . 1816ae1554aSColin Percival.Pp 1826ae1554aSColin PercivalAbility to key an external device added by 1836ae1554aSColin Percival.An J\(:org Wunsch 1846ae1554aSColin Percival(DL8DTL). 1856ae1554aSColin Percival.Pp 1866ae1554aSColin PercivalFarnsworth support for 1876ae1554aSColin Percival.Nm 1886ae1554aSColin Percivaladded by 1896ae1554aSColin Percival.An Stephen Cravey (N5UUU). 1906ae1554aSColin Percival.Sh BUGS 1916ae1554aSColin PercivalOnly understands a few European characters 1926ae1554aSColin Percival(German and French), 1936ae1554aSColin Percivalno Asian characters, 1946ae1554aSColin Percivaland no continental landline code. 1956ae1554aSColin Percival.Pp 1966ae1554aSColin PercivalSends a bit slower than it should due to system overhead. 1976ae1554aSColin PercivalSome people would call this a feature. 198