… | |
… | |
281 | |
281 | |
282 | =item on_refresh_end $term |
282 | =item on_refresh_end $term |
283 | |
283 | |
284 | Called just after the screen gets redrawn. See C<on_refresh_begin>. |
284 | Called just after the screen gets redrawn. See C<on_refresh_begin>. |
285 | |
285 | |
286 | =item on_user_command $term, $string |
286 | =item on_user_command $term, $string *DEPRECATED* |
287 | |
287 | |
288 | Called whenever a user-configured event is being activated (e.g. via |
288 | Called whenever a user-configured event is being activated (e.g. via |
289 | a C<perl:string> action bound to a key, see description of the B<keysym> |
289 | a C<perl:string> action bound to a key, see description of the B<keysym> |
290 | resource in the urxvt(1) manpage). |
290 | resource in the urxvt(1) manpage). |
291 | |
291 | |
292 | The event is simply the action string. This interface is assumed to change |
292 | The event is simply the action string. This interface is going away in |
293 | slightly in the future. |
293 | preference to the C<< ->register_keysym_action >> method. |
294 | |
294 | |
295 | =item on_register_command $term, $keysym, $modifiermask, $string |
295 | =item on_register_command $term, $keysym, $modifiermask, $string |
296 | |
296 | |
297 | Called after parsing a keysym resource but before registering the |
297 | Called after parsing a keysym resource but before registering the |
298 | associated binding. If this hook returns TRUE the binding is not |
298 | associated binding. If this hook returns a true value the binding |
299 | registered. It can be used to modify a binding by calling |
299 | is not registered. It can be used to modify a binding by calling |
300 | C<register_command>. |
300 | C<register_command>. |
301 | |
301 | |
302 | =item on_resize_all_windows $term, $new_width, $new_height |
302 | =item on_resize_all_windows $term, $new_width, $new_height |
303 | |
303 | |
304 | Called just after the new window size has been calculated, but before |
304 | Called just after the new window size has been calculated, but before |
305 | windows are actually being resized or hints are being set. If this hook |
305 | windows are actually being resized or hints are being set. If this hook |
306 | returns TRUE, setting of the window hints is being skipped. |
306 | returns a true value, setting of the window hints is being skipped. |
307 | |
307 | |
308 | =item on_x_event $term, $event |
308 | =item on_x_event $term, $event |
309 | |
309 | |
310 | Called on every X event received on the vt window (and possibly other |
310 | Called on every X event received on the vt window (and possibly other |
311 | windows). Should only be used as a last resort. Most event structure |
311 | windows). Should only be used as a last resort. Most event structure |
… | |
… | |
827 | } |
827 | } |
828 | |
828 | |
829 | =item $self->enable ($hook_name => $cb[, $hook_name => $cb..]) |
829 | =item $self->enable ($hook_name => $cb[, $hook_name => $cb..]) |
830 | |
830 | |
831 | Dynamically enable the given hooks (named without the C<on_> prefix) for |
831 | Dynamically enable the given hooks (named without the C<on_> prefix) for |
832 | this extension, replacing any previous hook. This is useful when you want |
832 | this extension, replacing any hook previously installed via C<enable> in |
833 | to overwrite time-critical hooks only temporarily. |
833 | this extension. |
|
|
834 | |
|
|
835 | This is useful when you want to overwrite time-critical hooks only |
|
|
836 | temporarily. |
834 | |
837 | |
835 | To install additional callbacks for the same hook, you can use the C<on> |
838 | To install additional callbacks for the same hook, you can use the C<on> |
836 | method of the C<urxvt::term> class. |
839 | method of the C<urxvt::term> class. |
837 | |
840 | |
838 | =item $self->disable ($hook_name[, $hook_name..]) |
841 | =item $self->disable ($hook_name[, $hook_name..]) |