[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Word Count beep



Reply to note from Jon Pareles  Sat, 27 Nov 1999
22:07:43 -0500

-> Is there a way to turn off the beep that WC uses to announce
-> its results?

You can turn it off, though for most users it's not simply a matter of
changing a default setting. That beep is controlled by default EB (Error
Beep) -- a bad idea, since it doesn't signal an error, but there you have
it. If you disable it (by commanding D EB=0,0), you're turning off error
beeps for all commands, not just WC.

To attack the problem surgically, you need a bit of XPL. The following
small routine invokes error suppression (ES 1) to muzzle the beep;
unfortunately, ES also suppresses the display, so a few more bytes are
needed to grab the word count  and echo it to the PRompt line.

As I believe you have the XyWWWeb Jumbo U2 installed, you can just command
DECODE to decode what's below (or open the Base64 attachment also
supplied). Add frame {{5wc}} to your U2 customization file and reLOAD the
file. Then, instead of the native WC command, issue WC to get a
word count. In the alternative, you can LDPM the code to a key or RUN WC.PM
as a free-standing disk file.

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GLa{>}[cr|lf]{{;5wc}} Beep-less Word Count [CLD][cr|lf]{2}
{<}LBa{>}[BX_]es 1[Q2_][BX_]wc[Q2_]{<}SX01,{<}VA$WC{>}{>}{<}S
X01,{<}IS01{>}+" words"{>}{<}PR@01{>}{<}EX{>}{2}[cr|lf][cr|lf
]
-nd
XPLeNCODE

--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/


--=_BASE64.PM_(XyWWWeb.U2)_v1.0
MIME-Version: 1.0
Content-Type: application/octet-stream; name="19991128.POP"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="19991128.POP"

rkdMYa8NCnt7NXdjfX0gQmVlcC1sZXNzIFdvcmQgQ291bnQgW0NMRF0NCgKuTEJhr/+Cq2Vz
IDH/gn//gqt3Y/+Cf65TWDAxLK5WQSRXQ6+vrlNYMDEsrklTMDGvKyIgd29yZHMir65QUkAw
Ma+uRVivAg0KDQo=

--=_BASE64.PM_(XyWWWeb.U2)_v1.0