]> thyrsus.com Git - morse-classic.git/commitdiff
Clesar decks before hacking TTY code.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 24 Jan 2005 15:58:55 +0000 (15:58 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 24 Jan 2005 15:58:55 +0000 (15:58 +0000)
Makefile
morse.c
morse.xml

index 0a5bb3eb33520e37d9e70acd48cd447a261ff141..4557f4e41e1fcdf77e2e672846d2ff814281ca9c 100644 (file)
--- a/Makefile
+++ b/Makefile
 #DEVICE = AdLib
 DEVICE = OSS
 
-#
-# For termio a la System V, add -DUSG to DEFINES. (Linux in particular needs
-#   this.)
 #
 # For alternate random number generator, add either -DUSELRAND for lrand48(),
 #   or -DUSERAND for (ugh) rand(). Default is -DUSERANDOM for random().
 #
-# If the same speaker making the morse code beeps will also make ^G beeps
-#   (which occur when you get a letter wrong), you may want to #define
-#   ERROR_VOLUME to be 1.; this will cause the ^G beeps to be made using
-#   the same routines that do the morse-code beeps, possibly preventing
-#   conflicts. (If you prefer quieter error beeps, you can use anything
-#   between 0. and 1.; if you want it the same volume as the morse-code
-#   beeps, use "-DERROR_VOLUME=volume". If you don't like the pitch of
-#   the error tone, you can override the default by #defining ERROR_FREQ to
-#   be your favorite wake-up alarm frequency, in hertz.)
-#
 # On a Sun workstation you may want to compile with -DFULLVOLUME (see beepSun.c
 #   for more details).
 #
-#DEFINES = -DUSG -DUSELRAND
-DEFINES = -DUSG
+#DEFINES = -DUSELRAND
 #DEFINES = -DFULLVOLUME
 #DEFINES = 
 
diff --git a/morse.c b/morse.c
index 122dde79583e44dccf58300636f90c0206f4967e..1437a37c3d2a4f95bc8ea5795e60ec6de50504b0 100644 (file)
--- a/morse.c
+++ b/morse.c
@@ -37,7 +37,7 @@
  *     added System V support.
  *
  * Joe Dellinger, Nov 1994:
- *     Fixed a bug in the termio calls for the -DUSG case.
+ *     Fixed a bug in the USG termio calls.
  *     Added an option to make the "error" beep come out via the beep
  *     routines instead of by printing a control-G.
  *
@@ -60,6 +60,7 @@
  *     Changed ALLPUNCTUATION to runtime -B option.
  *     Changed ERROR_FREQUENCY to runtime -x option.
  *     Changed ERROR_VOLUME to runtime -X option.
+ *     Dropped BSD signal support.
  *     Wrote the manual page.
  */
 
@@ -132,6 +133,8 @@ char            copyleftjoe[] =
 #include <signal.h>
 #include "beep.h"
 
+#define USG
+
 #define FREQUENCY      800.0
 #define FREQUENCY2     602.0
 #define VOLUME         0.5
index 60465345df52ac2ecd17bed5c6903454119cac19..0c77fd9b9ed63a3d3302fbed5d44a8ffac81769d 100644 (file)
--- a/morse.xml
+++ b/morse.xml
@@ -48,7 +48,7 @@
     <arg choice='opt'>-S </arg>
     <arg choice='opt'>-x <replaceable>num</replaceable></arg>
     <arg choice='opt'>-X <replaceable>num</replaceable></arg>
-    <arg choice='opt'><replaceable>word</replaceable></arg>
+    <arg rep='repeat' choice='opt'><replaceable>word</replaceable></arg>
 </cmdsynopsis>
 
 </refsynopsisdiv>