repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 45774ca738c0ee2af2270bf5cf3e06e5d4bda634: path_to: revision_to:
commit 45774ca738c0ee2af2270bf5cf3e06e5d4bda634 Author: Emanuele GiaquintaDate: Wed Jan 6 17:52:43 2010 +0000 Add on_bell perl hook that is called on receipt of a bell character. diff --git a/Changes b/Changes
--- a/Changes +++ b/Changes @@ -1,5 +1,6 @@ rxvt-unicode changelog <= google-friendly title + - new on_bell perl hook (Emanuele Giaquinta). - new iso14755 option to disable ISO 14755 at runtime (Emanuele Giaquinta). 9.07 Wed Dec 30 07:07:18 CET 2009 diff --git a/src/hookinc.h b/src/hookinc.h
--- a/src/hookinc.h +++ b/src/hookinc.h @@ -52,3 +52,5 @@ def (CUSTOM_REND) // hovering over custom rendition, generate enter/leave maybe? + def (BELL) + diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C
+++ b/src/screen.C
@@ -1935,6 +1935,7 @@ rxvt_term::scr_bell () NOTHROW
}
else
XBell (dpy, 0);
+ HOOK_INVOKE ((this, HOOK_BELL, DT_END));
#endif
}
diff --git a/src/urxvt.pm b/src/urxvt.pm
--- a/src/urxvt.pm +++ b/src/urxvt.pm @@ -711,6 +711,10 @@ subwindow. Called when various types of ClientMessage events are received (all with format=32, WM_PROTOCOLS or WM_PROTOCOLS:WM_DELETE_WINDOW). +=item on_bell $term + +Called on receipt of a bell character. + =back =cut
-----END OF PAGE-----