ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.197 by sf-tpope, Fri Aug 19 23:08:35 2011 UTC vs.
Revision 1.201 by sf-exg, Tue Nov 29 19:20:18 2011 UTC

400=item confirm-paste 400=item confirm-paste
401 401
402Displays a confirmation dialog when a paste containing at least a full 402Displays a confirmation dialog when a paste containing at least a full
403line is detected. 403line is detected.
404 404
405=item bell-command
406
407Runs the command specified by the C<URxvt.bell-command> resource when
408a bell event occurs. For example, the following pops up a notification
409bubble 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
967sub invoke { 975sub 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
1210sub DESTROY { 1218sub DESTROY {
1211 $_[0][1]->stop; 1219 $_[0][1]->stop;
1212} 1220}
1213 1221
1222# only needed for AnyEvent < 6 compatibility
1214sub one_event { 1223sub 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
1218package urxvt::term; 1227package urxvt::term;
1373 1382
1374This method should only be called during the C<on_start> hook, as there is 1383This method should only be called during the C<on_start> hook, as there is
1375only one resource database per display, and later invocations might return 1384only one resource database per display, and later invocations might return
1376the wrong resources. 1385the wrong resources.
1377 1386
1378=item $success = $term->parse_keysym ($keysym_spec, $command_string) 1387=item $success = $term->parse_keysym ($key, $octets)
1379 1388
1380Adds a keymap translation exactly as specified via a resource. See the 1389Adds a key binding exactly as specified via a resource. See the
1381C<keysym> resource in the @@RXVT_NAME@@(1) manpage. 1390C<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
1385Return and optionally change the current rendition. Text that is output by 1394Return and optionally change the current rendition. Text that is output by

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines