… | |
… | |
263 | can filter/change and output the text yourself by returning a true value |
263 | 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 |
264 | 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 |
265 | might be very slow, however, as your hook is called for B<all> text being |
266 | output. |
266 | output. |
267 | |
267 | |
|
|
268 | =item on_tt_write $term, $octets |
|
|
269 | |
|
|
270 | Called whenever some data is written to the tty/pty and can be used to |
|
|
271 | suppress or filter tty input. |
|
|
272 | |
268 | =item on_line_update $term, $row |
273 | =item on_line_update $term, $row |
269 | |
274 | |
270 | Called whenever a line was updated or changed. Can be used to filter |
275 | 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 |
276 | 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, |
277 | that are being shown will be filtered, and, due to performance reasons, |
… | |
… | |
457 | our $VERSION = 1; |
462 | our $VERSION = 1; |
458 | our $TERM; |
463 | our $TERM; |
459 | our @HOOKNAME; |
464 | our @HOOKNAME; |
460 | our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; |
465 | our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; |
461 | our %OPTION; |
466 | our %OPTION; |
|
|
467 | |
462 | our $LIBDIR; |
468 | our $LIBDIR; |
|
|
469 | our $RESNAME; |
|
|
470 | our $RESCLASS; |
|
|
471 | our $RXVTNAME; |
463 | |
472 | |
464 | BEGIN { |
473 | BEGIN { |
465 | urxvt->bootstrap; |
474 | urxvt->bootstrap; |
466 | |
475 | |
467 | # overwrite perl's warn |
476 | # overwrite perl's warn |