Re: [dwm] [dvtm] CO_BEL patch for madtty.c

From: Claudio M. Alessi <smoppy_AT_gmail.com>
Date: Sun, 17 Feb 2008 18:16:54 +0100

On Sun, Feb 17, 2008 at 10:41:49AM +0100, Marc Andre Tanner wrote:
> I personally don't like the beeping and flashing but i will give it a
> try and see how this works in practise (i haven't yet seen a difference
> with this patch applied on my macbook).
I don't like such notification stuff too, expecially the
beeping but may be usefull to have some kind of customization
which allow to do a certain thing (other than beeping). Indeed
"notification" is more than just a beep IMHO. What about using
a code like the following rather a "static" beep(3) or flash(3)
which, if defined, is executed?

#if defined(NOTIFY)
        NOTIFY /* Some notify */
#endif

This way we could have a thing like this in our config.h file:

#define NOTIFY flash() /* beep() */

or even a bit more complex example like this:

/* Would you provide a better example? :-) */
#define NOTIFY flash(); beep(); \
                mvprintw(LINES - 1, 0, "Hey, do you like notify?"); \
                refresh(); sleep(1);

Indeed it's better than the comment we actually have, i think.

HTH.

-- 
Claudio M.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU d-@ s: a--> C++(+++) UB++>$ P+> !L E--- W++(+++)
N+@ o--> K? w+@> O-@> M- V? PS+@ PE+@ Y+ PGP> t(-)@ 5?
X+ R? tv-- b+> DI-- D? G e+@> h--@> r y*
------END GEEK CODE BLOCK------
Received on Sun Feb 17 2008 - 18:17:27 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:20:28 UTC