… | |
… | |
1100 | while (my ($name, $cb) = each %hook) { |
1100 | while (my ($name, $cb) = each %hook) { |
1101 | my $htype = $HOOKTYPE{uc $name}; |
1101 | my $htype = $HOOKTYPE{uc $name}; |
1102 | defined $htype |
1102 | defined $htype |
1103 | or Carp::croak "unsupported hook type '$name'"; |
1103 | or Carp::croak "unsupported hook type '$name'"; |
1104 | |
1104 | |
1105 | $self->set_should_invoke ($htype, +1) |
1105 | $self->modify_should_invoke_count ($htype, +1) |
1106 | unless exists $self->{term}{_hook}[$htype]{$pkg}; |
1106 | unless exists $self->{term}{_hook}[$htype]{$pkg}; |
1107 | |
1107 | |
1108 | $self->{term}{_hook}[$htype]{$pkg} = $cb; |
1108 | $self->{term}{_hook}[$htype]{$pkg} = $cb; |
1109 | } |
1109 | } |
1110 | } |
1110 | } |
… | |
… | |
1116 | for my $name (@hook) { |
1116 | for my $name (@hook) { |
1117 | my $htype = $HOOKTYPE{uc $name}; |
1117 | my $htype = $HOOKTYPE{uc $name}; |
1118 | defined $htype |
1118 | defined $htype |
1119 | or Carp::croak "unsupported hook type '$name'"; |
1119 | or Carp::croak "unsupported hook type '$name'"; |
1120 | |
1120 | |
1121 | $self->set_should_invoke ($htype, -1) |
1121 | $self->modify_should_invoke_count ($htype, -1) |
1122 | if delete $self->{term}{_hook}[$htype]{$pkg}; |
1122 | if delete $self->{term}{_hook}[$htype]{$pkg}; |
1123 | } |
1123 | } |
1124 | } |
1124 | } |
1125 | |
1125 | |
1126 | our $AUTOLOAD; |
1126 | our $AUTOLOAD; |
… | |
… | |
1629 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1629 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1630 | to receive pointer events all the times: |
1630 | to receive pointer events all the times: |
1631 | |
1631 | |
1632 | $term->vt_emask_add (urxvt::PointerMotionMask); |
1632 | $term->vt_emask_add (urxvt::PointerMotionMask); |
1633 | |
1633 | |
|
|
1634 | =item $term->set_urgency ($set) |
|
|
1635 | |
|
|
1636 | Enable/disable the urgency hint on the toplevel window. |
|
|
1637 | |
1634 | =item $term->focus_in |
1638 | =item $term->focus_in |
1635 | |
1639 | |
1636 | =item $term->focus_out |
1640 | =item $term->focus_out |
1637 | |
1641 | |
1638 | =item $term->key_press ($state, $keycode[, $time]) |
1642 | =item $term->key_press ($state, $keycode[, $time]) |