… | |
… | |
151 | bottom. C<Escape> leaves search mode and returns to the point where search |
151 | bottom. C<Escape> leaves search mode and returns to the point where search |
152 | was started, while C<Enter> or C<Return> stay at the current position and |
152 | was started, while C<Enter> or C<Return> stay at the current position and |
153 | additionally stores the first match in the current line into the primary |
153 | additionally stores the first match in the current line into the primary |
154 | selection. |
154 | selection. |
155 | |
155 | |
|
|
156 | The regex defaults to "(?i)", resulting in a case-insensitive search. To |
|
|
157 | get a case-sensitive search you can delete this prefix using C<BackSpace> |
|
|
158 | or simply use an uppercase character which removes the "(?i)" prefix. |
|
|
159 | |
|
|
160 | See L<perlre> for more info about perl regular expression syntax. |
|
|
161 | |
156 | =item readline (enabled by default) |
162 | =item readline (enabled by default) |
157 | |
163 | |
158 | A support package that tries to make editing with readline easier. At |
164 | A support package that tries to make editing with readline easier. At |
159 | the moment, it reacts to clicking shift-left mouse button by trying to |
165 | the moment, it reacts to clicking shift-left mouse button by trying to |
160 | move the text cursor to this position. It does so by generating as many |
166 | move the text cursor to this position. It does so by generating as many |
… | |
… | |
255 | |
261 | |
256 | @@RXVT_NAME@@ -pt OnTheSpot -pe xim-onthespot |
262 | @@RXVT_NAME@@ -pt OnTheSpot -pe xim-onthespot |
257 | |
263 | |
258 | =item automove-background |
264 | =item automove-background |
259 | |
265 | |
260 | This is basically a one-line extension that dynamically changes the background pixmap offset |
266 | This is basically a very small extension that dynamically changes the |
261 | to the window position, in effect creating the same effect as pseudo transparency with |
267 | background pixmap offset to the window position, in effect creating the |
262 | a custom pixmap. No scaling is supported in this mode. Exmaple: |
268 | same effect as pseudo transparency with a custom pixmap. No scaling is |
|
|
269 | supported in this mode. Exmaple: |
263 | |
270 | |
264 | @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background |
271 | @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background |
265 | |
272 | |
266 | =item block-graphics-to-ascii |
273 | =item block-graphics-to-ascii |
267 | |
274 | |
268 | A not very useful example of filtering all text output to the terminal, |
275 | A not very useful example of filtering all text output to the terminal |
269 | by replacing all line-drawing characters (U+2500 .. U+259F) by a |
276 | by replacing all line-drawing characters (U+2500 .. U+259F) by a |
270 | similar-looking ascii character. |
277 | similar-looking ascii character. |
271 | |
278 | |
272 | =item digital-clock |
279 | =item digital-clock |
273 | |
280 | |
… | |
… | |
368 | |
375 | |
369 | =back |
376 | =back |
370 | |
377 | |
371 | =head2 Extension Objects |
378 | =head2 Extension Objects |
372 | |
379 | |
373 | Very perl extension is a perl class. A separate perl object is created |
380 | Every perl extension is a perl class. A separate perl object is created |
374 | for each terminal and each extension and passed as the first parameter to |
381 | for each terminal and each extension and passed as the first parameter to |
375 | hooks. So extensions can use their C<$self> object without having to think |
382 | hooks. So extensions can use their C<$self> object without having to think |
376 | about other extensions, with the exception of methods and members that |
383 | about other extensions, with the exception of methods and members that |
377 | begin with an underscore character C<_>: these are reserved for internal |
384 | begin with an underscore character C<_>: these are reserved for internal |
378 | use. |
385 | use. |
… | |
… | |
907 | |
914 | |
908 | if (my $cb = $TERM->{_hook}[$htype]) { |
915 | if (my $cb = $TERM->{_hook}[$htype]) { |
909 | verbose 10, "$HOOKNAME[$htype] (" . (join ", ", $TERM, @_) . ")" |
916 | verbose 10, "$HOOKNAME[$htype] (" . (join ", ", $TERM, @_) . ")" |
910 | if $verbosity >= 10; |
917 | if $verbosity >= 10; |
911 | |
918 | |
912 | keys %$cb; |
919 | for my $pkg (keys %$cb) { |
913 | |
|
|
914 | while (my ($pkg, $cb) = each %$cb) { |
|
|
915 | my $retval_ = eval { $cb->($TERM->{_pkg}{$pkg}, @_) }; |
920 | my $retval_ = eval { $cb->{$pkg}->($TERM->{_pkg}{$pkg}, @_) }; |
916 | $retval ||= $retval_; |
921 | $retval ||= $retval_; |
917 | |
922 | |
918 | if ($@) { |
923 | if ($@) { |
919 | $TERM->ungrab; # better to lose the grab than the session |
924 | $TERM->ungrab; # better to lose the grab than the session |
920 | warn $@; |
925 | warn $@; |