… | |
… | |
66 | =item selection-popup (enabled by default) |
66 | =item selection-popup (enabled by default) |
67 | |
67 | |
68 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
68 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
69 | text into various other formats/action. |
69 | text into various other formats/action. |
70 | |
70 | |
71 | =item searchable-scrollback (enabled by default) |
71 | =item searchable-scrollback<hotkey> (enabled by default) |
72 | |
72 | |
73 | Adds regex search functionality to the scrollback buffer, triggered by a |
73 | Adds regex search functionality to the scrollback buffer, triggered |
74 | hotkey (default: C<M-s>). When in search mode, terminal input/output is |
74 | by a hotkey (default: C<M-s>). When in search mode, normal terminal |
|
|
75 | input/output is suspended. |
|
|
76 | |
75 | suspended, C</> starts an incremental regex search, C<n> searches further, |
77 | C</> starts an incremental regex search, C<n> searches further, C<p> or |
76 | C<p> jumps to the previous match. C<enter> leaves search mode at the |
78 | C<N> jump to the previous match, C<G> jumps to the bottom and clears the |
77 | current position and C<escape> returns to the original position. |
79 | history, C<enter> leaves search mode at the current position and C<escape> |
|
|
80 | returns to the original position. |
78 | |
81 | |
79 | =item digital-clock |
82 | =item digital-clock |
80 | |
83 | |
81 | Displays a digital clock using the built-in overlay. |
84 | Displays a digital clock using the built-in overlay. |
82 | |
85 | |
… | |
… | |
263 | can filter/change and output the text yourself by returning a true value |
266 | can filter/change and output the text yourself by returning a true value |
264 | and calling C<< $term->scr_add_lines >> yourself. Please note that this |
267 | and calling C<< $term->scr_add_lines >> yourself. Please note that this |
265 | might be very slow, however, as your hook is called for B<all> text being |
268 | might be very slow, however, as your hook is called for B<all> text being |
266 | output. |
269 | output. |
267 | |
270 | |
|
|
271 | =item on_tt_write $term, $octets |
|
|
272 | |
|
|
273 | Called whenever some data is written to the tty/pty and can be used to |
|
|
274 | suppress or filter tty input. |
|
|
275 | |
268 | =item on_line_update $term, $row |
276 | =item on_line_update $term, $row |
269 | |
277 | |
270 | Called whenever a line was updated or changed. Can be used to filter |
278 | Called whenever a line was updated or changed. Can be used to filter |
271 | screen output (e.g. underline urls or other useless stuff). Only lines |
279 | screen output (e.g. underline urls or other useless stuff). Only lines |
272 | that are being shown will be filtered, and, due to performance reasons, |
280 | that are being shown will be filtered, and, due to performance reasons, |
… | |
… | |
457 | our $VERSION = 1; |
465 | our $VERSION = 1; |
458 | our $TERM; |
466 | our $TERM; |
459 | our @HOOKNAME; |
467 | our @HOOKNAME; |
460 | our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; |
468 | our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; |
461 | our %OPTION; |
469 | our %OPTION; |
|
|
470 | |
462 | our $LIBDIR; |
471 | our $LIBDIR; |
|
|
472 | our $RESNAME; |
|
|
473 | our $RESCLASS; |
|
|
474 | our $RXVTNAME; |
463 | |
475 | |
464 | BEGIN { |
476 | BEGIN { |
465 | urxvt->bootstrap; |
477 | urxvt->bootstrap; |
466 | |
478 | |
467 | # overwrite perl's warn |
479 | # overwrite perl's warn |