Catch 'bell' event
bernhard.walle at gmx.de
Mon Mar 26 10:44:53 CEST 2007
* Marc Lehmann <schmorp at schmorp.de> [2007-03-24 02:43]:
> On Thu, Mar 22, 2007 at 09:17:17AM +0100, Bernhard Walle <bernhard.walle at gmx.de> wrote:
> > is it possible to catch the bell event in an extension?
> there is no such thing as a bell event, do you mean the ascii bel
> character maybe?
> that can be acomplished by filtering all output to the terminal, see e.g.
> the block-graphics-to-ascii extension, which replaces graphical characters
> by some ascii "equivalents". you could do the same with the BEL character,
> filtering it our or not as you like.
That doesn't work (I displayed all characters and on bell  that
bell character is not given the on_add_lines() callback. I think
that's because this is no character that is written to the console but
catched by urxvt.
I have a working C patch (found in the internet and improved a bit),
but I'd like to have this with a Perl extension so that I don't need
to re-build my urxvt on all machines I work.
 echo -ne '\007'
More information about the rxvt-unicode