--- rxvt-unicode/src/urxvt.pm 2011/11/30 10:29:51 1.202 +++ rxvt-unicode/src/urxvt.pm 2012/06/05 19:32:29 1.205 @@ -674,6 +674,13 @@ The event is simply the action string. This interface is assumed to change slightly in the future. +=item on_register_command $term, $keysym, $modifiermask, $string + +Called after parsing a keysym resource but before registering the +associated binding. If this hook returns TRUE the binding is not +registered. It can be used to modify a binding by calling +C. + =item on_resize_all_windows $term, $new_width, $new_height Called just after the new window size has been calculated, but before @@ -1095,7 +1102,7 @@ defined $htype or Carp::croak "unsupported hook type '$name'"; - $self->set_should_invoke ($htype, +1) + $self->modify_should_invoke_count ($htype, +1) unless exists $self->{term}{_hook}[$htype]{$pkg}; $self->{term}{_hook}[$htype]{$pkg} = $cb; @@ -1111,7 +1118,7 @@ defined $htype or Carp::croak "unsupported hook type '$name'"; - $self->set_should_invoke ($htype, -1) + $self->modify_should_invoke_count ($htype, -1) if delete $self->{term}{_hook}[$htype]{$pkg}; } } @@ -1395,6 +1402,13 @@ Adds a key binding exactly as specified via a resource. See the C resource in the @@RXVT_NAME@@(1) manpage. +=item $term->register_command ($keysym, $modifiermask, $string) + +Adds a key binding. This is a lower level api compared to +C, as it expects a parsed key description, and can be +used only inside either the C hook, to add a binding, or the +C hook, to modify a parsed binding. + =item $rend = $term->rstyle ([$new_rstyle]) Return and optionally change the current rendition. Text that is output by @@ -1617,6 +1631,10 @@ $term->vt_emask_add (urxvt::PointerMotionMask); +=item $term->set_urgency ($set) + +Enable/disable the urgency hint on the toplevel window. + =item $term->focus_in =item $term->focus_out