… | |
… | |
118 | |
118 | |
119 | Dynamically enable the given hooks (named without the C<on_> prefix) for |
119 | Dynamically enable the given hooks (named without the C<on_> prefix) for |
120 | this extension, replacing any previous hook. This is useful when you want |
120 | this extension, replacing any previous hook. This is useful when you want |
121 | to overwrite time-critical hooks only temporarily. |
121 | to overwrite time-critical hooks only temporarily. |
122 | |
122 | |
123 | To install additional callbacks for the same hook, you cna use the C<on> |
123 | To install additional callbacks for the same hook, you can use the C<on> |
124 | method of the C<urxvt::term> class. |
124 | method of the C<urxvt::term> class. |
125 | |
125 | |
126 | =item $self->disable ($hook_name[, $hook_name..]) |
126 | =item $self->disable ($hook_name[, $hook_name..]) |
127 | |
127 | |
128 | Dynamically disable the given hooks. |
128 | Dynamically disable the given hooks. |
… | |
… | |
1072 | watchers (timers, io watchers) are still active. |
1072 | watchers (timers, io watchers) are still active. |
1073 | |
1073 | |
1074 | =item $guard = $self->on ($hook_name => $cb[, $hook_name => $cb..]) |
1074 | =item $guard = $self->on ($hook_name => $cb[, $hook_name => $cb..]) |
1075 | |
1075 | |
1076 | Similar to the extension method C<enable>, but installs additional |
1076 | Similar to the extension method C<enable>, but installs additional |
1077 | callbacks for the givne hook(s) (existing ones are not replaced), and |
1077 | callbacks for the given hook(s) (existing ones are not replaced), and |
1078 | returns a guard object. When the guard object is destroyed the callbacks |
1078 | returns a guard object. When the guard object is destroyed the callbacks |
1079 | are disabled again. |
1079 | are disabled again. |
1080 | |
1080 | |
1081 | Note that these callbacks receive the normal paramaters, but the first |
1081 | Note that these callbacks receive the normal parameters, but the first |
1082 | argument (normally the extension) is currently undefined. |
1082 | argument (normally the extension) is currently undefined. |
1083 | |
1083 | |
1084 | =cut |
1084 | =cut |
1085 | |
1085 | |
1086 | sub urxvt::term::on_disable::DESTROY { |
1086 | sub urxvt::term::on_disable::DESTROY { |