Commit Graph

43 Commits

Author SHA1 Message Date
uqs
a3cd50e586 Reencode morse.c to UTF-8. This does not make it Unicode aware.
No changes in resulting object file. Moved user-visible symbols into
comment table, so you can see all chars, not just the ones matching your
(fallback) locale.
2012-01-15 13:23:01 +00:00
ed
af1e42f366 Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.
2011-11-05 07:18:53 +00:00
uqs
a79eafddc3 morse(6): fix typos and space-before-tabs 2011-05-14 19:03:30 +00:00
uqs
e166421f4d Drop advertising clause in manpages. It was done a long time ago
for the source code.

Discussed with:	core
2010-12-06 19:12:51 +00:00
imp
7c458552b0 Remove the third clause for the Berkeley parts of games, per the
letter in /COPYRIGHT.
2010-02-15 18:46:02 +00:00
uqs
925af540e5 morse(6) make WARNS=6 clean
Approved by:	ed (Co-mentor)
2010-02-15 14:31:05 +00:00
imp
205d2929b8 Always compile in the speaker code. There's little savings by
omitting it, and other platforms may implement /dev/speaker in the
future.
2010-02-04 07:08:06 +00:00
scf
c25b436504 Fixed the output grammar to properly speak non-terminal dits.
Updated Lyndon Nerenberg's radio callsign and E-mail address.

PR:		bin/7868
Submitted by:	Lyndon Nerenberg <lyndon@orthanc.ca>
MFC after:	1 week
2008-06-08 19:35:47 +00:00
ru
61c0ca0abb Add /dev/speaker support to amd64.
The following repo-copies were made (by Mark Murray):

sys/i386/isa/spkr.c -> sys/dev/speaker/spkr.c
sys/i386/include/speaker.h -> sys/dev/speaker/speaker.h
share/man/man4/man4.i386/spkr.4 -> share/man/man4/spkr.4
2005-11-11 09:57:32 +00:00
ru
c951593ab8 Fix markup nits. 2005-06-07 21:43:16 +00:00
joerg
999d3f2f2a Add Farnsworth support to morse(6).
(For those interested: this is intented to extend the space between
characters to help people learning morse code by giving the brain some
extra time for acoustical pattern recognition.)

Note: I slightly cleaned up the submitted patch for minor stylistic
issues, and changed the default for the new -c option to be identical
to -w.

Submitted by:	"Stephen P. Cravey" <cravey@gotbrains.org> N5UUU
MFC after:	2 weeks
PR:		bin/81831
2005-06-07 19:01:41 +00:00
ru
5fca3d26af Sort sections. 2005-01-18 08:57:18 +00:00
ru
fba1b06a6b Markup fixes. 2004-05-16 21:52:48 +00:00
ru
3e3e3d8475 Really add -l to the usage output. 2004-05-16 21:49:23 +00:00
dds
104658ee3e Add Greek character encoding suport.
MFC after:	2 weeks
2004-05-11 11:11:14 +00:00
fanf
24496b18b5 Label @ as being AC (since it's constructed like a prosign).
Submitted by:	des
2004-02-20 13:46:39 +00:00
fanf
39aa73fd6d Add some missing punctuation symbols, in particular @ which (according to
a recent Press Association release) was added to Morse code by the ITU in
December. @ was previously used for the SK prosign, which is now spelt &.

Obtained from:  http://en.wikipedia.org/wiki/Morse_code
2004-02-20 11:55:38 +00:00
phk
a401023210 Add a '-l' option suitable for use with /dev/led/* lamps. 2003-11-03 11:05:43 +00:00
ru
4345758876 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
markm
9e5e8e8ff4 Fix some fractured english. The translators can ignore this. 2001-08-07 09:14:51 +00:00
dd
a145482cf6 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ru
2d990c7ebc mdoc(7) police: removed extraneous .Pp call. 2001-07-04 10:19:02 +00:00
ache
fbe0ca3c4a Convert to nl_langinfo(CODESET) 2001-06-26 01:43:52 +00:00
ache
05c95af18c Fix ISO_ to preferred MIME name 2001-06-10 20:30:41 +00:00
ru
45d92a4319 - Backout botched attempt to intoduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
ru
97b705f3c8 Set the default manual section for games/ to 6. 2001-03-20 18:08:43 +00:00
ru
3e8d7346e8 setlocale(3) has been fixed to match POSIX standard:
LC_ALL takes precedence over other LC_* envariables.
2001-03-02 16:52:14 +00:00
ru
9f97905571 Prepare for mdocNG. 2001-02-26 09:05:48 +00:00
ru
7c656f15b8 mdoc(7) police: correct .Dd, add missing .El. 2001-02-06 16:17:49 +00:00
phantom
634abbb6fe Give morse(6) own manual page since common manpage for bcd(6), ppt(6) and
morse(6) was mostly dedicated to morse(6)
2001-01-25 12:35:49 +00:00
joerg
710572bb8d Add an eleventh-hour gimick... But since it's only in `games' and
Jordan OK'ed it, i think it's a nice one for those who need it.  I
once mentioned in Usenet that i've hacked morse(6) so it can control
an external device like a tone generator or even a ham radio
transceiver, so you could actually use that `game' for really
transmitting morse code through the air.  A couple of people then
bugged be to send them my hack (which it was by that time).

So i've now finally found some hours to clean it up (like freaking out
with the transmitter no longer keyed in case someone ^c's out of the
program...), and to write the man page addition.

While i was at it, i also cleaned up some minor nits in Lyndon's
/dev/speaker code, mainly #ifdef related stuff like handling getopt()
if SPEAKER is not defined etc.

enjoy & 73

Approved by:	jkh, the restless...
2000-02-27 01:21:28 +00:00
billf
6cbdd98986 -Wall fixes. 1999-12-15 04:28:10 +00:00
billf
002f485078 copyright/sccsid/rcsid cleanup. 1999-11-30 03:50:02 +00:00
billf
44fac3a89d Sync our register usage with NetBSD's (non-)usage. 1999-11-16 02:58:06 +00:00
billf
ecc8d48940 Add $FreeBSD$ 1999-11-16 02:45:03 +00:00
jb
6061aa32dc Add #include string.h to get prototypes. 1998-05-09 08:17:46 +00:00
jb
4b1fdc389c Alphas don't necessarily have speakers. 1998-05-09 08:16:53 +00:00
jkh
441f3c9dac Wargh! Who went and changed all the getopt() comparisons from -1 to
EOF?  The getopt(3) manpage clearly states that the return value is *-1*,
not EOF!  Besides, getopt(3) isn't reading from a file. :)

Noticed-while:	merging to 2.2 (where this is correct).
1998-03-01 05:10:28 +00:00
ache
ac3253d328 Fix Cyrillic (KOI8-R) code table detection and processing
Remove yet one setuid()
1997-09-01 13:58:22 +00:00
ache
3afe2b17e3 Remove HIDEGAME and revoke, it is not a game to hide it 1997-09-01 11:53:14 +00:00
eivind
d8e95d8c1a Change games from setuid games to setgid games.
Reviewed by:	maybe@yes.no
Obtained from:	OpenBSD (mostly deraadt@openbsd.org)
1997-09-01 00:34:51 +00:00
joerg
136398cad8 Make morse(6) realling playing the characters on the speaker.
Minor additions by me, mostly taken from the suggestion in PR # bin/709.

Submitted by:	lyndon@orthanc.com (Lyndon Nerenberg, VE7TCP/VE6BBM)
1995-08-27 14:06:15 +00:00
jkh
057afceb86 Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
1994-09-04 04:03:31 +00:00