… | |
… | |
400 | =item confirm-paste |
400 | =item confirm-paste |
401 | |
401 | |
402 | Displays a confirmation dialog when a paste containing at least a full |
402 | Displays a confirmation dialog when a paste containing at least a full |
403 | line is detected. |
403 | line is detected. |
404 | |
404 | |
|
|
405 | =item bell-command |
|
|
406 | |
|
|
407 | Runs the command specified by the C<URxvt.bell-command> resource when |
|
|
408 | a bell event occurs. For example, the following pops up a notification |
|
|
409 | bubble with the text "Beep, Beep" using notify-send: |
|
|
410 | |
|
|
411 | URxvt.bell-command: notify-send "Beep, Beep" |
|
|
412 | |
405 | =back |
413 | =back |
406 | |
414 | |
407 | =head1 API DOCUMENTATION |
415 | =head1 API DOCUMENTATION |
408 | |
416 | |
409 | =head2 General API Considerations |
417 | =head2 General API Considerations |
… | |
… | |
967 | sub invoke { |
975 | sub invoke { |
968 | local $TERM = shift; |
976 | local $TERM = shift; |
969 | my $htype = shift; |
977 | my $htype = shift; |
970 | |
978 | |
971 | if ($htype == 0) { # INIT |
979 | if ($htype == 0) { # INIT |
972 | my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$LIBDIR/perl"); |
980 | my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$ENV{HOME}/.urxvt/ext", "$LIBDIR/perl"); |
973 | |
981 | |
974 | my %ext_arg; |
982 | my %ext_arg; |
975 | |
983 | |
976 | { |
984 | { |
977 | my @init = @TERM_INIT; |
985 | my @init = @TERM_INIT; |
… | |
… | |
1209 | |
1217 | |
1210 | sub DESTROY { |
1218 | sub DESTROY { |
1211 | $_[0][1]->stop; |
1219 | $_[0][1]->stop; |
1212 | } |
1220 | } |
1213 | |
1221 | |
|
|
1222 | # only needed for AnyEvent < 6 compatibility |
1214 | sub one_event { |
1223 | sub one_event { |
1215 | Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API"; |
1224 | Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API"; |
1216 | } |
1225 | } |
1217 | |
1226 | |
1218 | package urxvt::term; |
1227 | package urxvt::term; |
… | |
… | |
1373 | |
1382 | |
1374 | This method should only be called during the C<on_start> hook, as there is |
1383 | This method should only be called during the C<on_start> hook, as there is |
1375 | only one resource database per display, and later invocations might return |
1384 | only one resource database per display, and later invocations might return |
1376 | the wrong resources. |
1385 | the wrong resources. |
1377 | |
1386 | |
1378 | =item $success = $term->parse_keysym ($keysym_spec, $command_string) |
1387 | =item $success = $term->parse_keysym ($key, $octets) |
1379 | |
1388 | |
1380 | Adds a keymap translation exactly as specified via a resource. See the |
1389 | Adds a key binding exactly as specified via a resource. See the |
1381 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
1390 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
1382 | |
1391 | |
1383 | =item $rend = $term->rstyle ([$new_rstyle]) |
1392 | =item $rend = $term->rstyle ([$new_rstyle]) |
1384 | |
1393 | |
1385 | Return and optionally change the current rendition. Text that is output by |
1394 | Return and optionally change the current rendition. Text that is output by |