… | |
… | |
672 | resource in the @@RXVT_NAME@@(1) manpage). |
672 | resource in the @@RXVT_NAME@@(1) manpage). |
673 | |
673 | |
674 | The event is simply the action string. This interface is assumed to change |
674 | The event is simply the action string. This interface is assumed to change |
675 | slightly in the future. |
675 | slightly in the future. |
676 | |
676 | |
|
|
677 | =item on_register_command $term, $keysym, $modifiermask, $string |
|
|
678 | |
|
|
679 | Called after parsing a keysym resource but before registering the |
|
|
680 | associated binding. If this hook returns TRUE the binding is not |
|
|
681 | registered. It can be used to modify a binding by calling |
|
|
682 | C<register_command>. |
|
|
683 | |
677 | =item on_resize_all_windows $term, $new_width, $new_height |
684 | =item on_resize_all_windows $term, $new_width, $new_height |
678 | |
685 | |
679 | Called just after the new window size has been calculated, but before |
686 | Called just after the new window size has been calculated, but before |
680 | windows are actually being resized or hints are being set. If this hook |
687 | windows are actually being resized or hints are being set. If this hook |
681 | returns TRUE, setting of the window hints is being skipped. |
688 | returns TRUE, setting of the window hints is being skipped. |
… | |
… | |
935 | urxvt::warn ($msg); |
942 | urxvt::warn ($msg); |
936 | }; |
943 | }; |
937 | } |
944 | } |
938 | |
945 | |
939 | no warnings 'utf8'; |
946 | no warnings 'utf8'; |
|
|
947 | |
|
|
948 | sub resource { |
|
|
949 | my ($term, $name, $isarg, $flag, $value) = @_; |
|
|
950 | |
|
|
951 | warn "resourece<@_>\n";#d# |
|
|
952 | |
|
|
953 | 0 |
|
|
954 | } |
940 | |
955 | |
941 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
956 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
942 | |
957 | |
943 | sub verbose { |
958 | sub verbose { |
944 | my ($level, $msg) = @_; |
959 | my ($level, $msg) = @_; |
… | |
… | |
1393 | =item $success = $term->parse_keysym ($key, $octets) |
1408 | =item $success = $term->parse_keysym ($key, $octets) |
1394 | |
1409 | |
1395 | Adds a key binding exactly as specified via a resource. See the |
1410 | Adds a key binding exactly as specified via a resource. See the |
1396 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
1411 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
1397 | |
1412 | |
|
|
1413 | =item $term->register_command ($keysym, $modifiermask, $string) |
|
|
1414 | |
|
|
1415 | Adds a key binding. This is a lower level api compared to |
|
|
1416 | C<parse_keysym>, as it expects a parsed key description, and can be |
|
|
1417 | used only inside either the C<on_init> hook, to add a binding, or the |
|
|
1418 | C<on_register_command> hook, to modify a parsed binding. |
|
|
1419 | |
1398 | =item $rend = $term->rstyle ([$new_rstyle]) |
1420 | =item $rend = $term->rstyle ([$new_rstyle]) |
1399 | |
1421 | |
1400 | Return and optionally change the current rendition. Text that is output by |
1422 | Return and optionally change the current rendition. Text that is output by |
1401 | the terminal application will use this style. |
1423 | the terminal application will use this style. |
1402 | |
1424 | |
… | |
… | |
1614 | |
1636 | |
1615 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1637 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1616 | to receive pointer events all the times: |
1638 | to receive pointer events all the times: |
1617 | |
1639 | |
1618 | $term->vt_emask_add (urxvt::PointerMotionMask); |
1640 | $term->vt_emask_add (urxvt::PointerMotionMask); |
|
|
1641 | |
|
|
1642 | =item $term->set_urgency ($set) |
|
|
1643 | |
|
|
1644 | Enable/disable the urgency hint on the toplevel window. |
1619 | |
1645 | |
1620 | =item $term->focus_in |
1646 | =item $term->focus_in |
1621 | |
1647 | |
1622 | =item $term->focus_out |
1648 | =item $term->focus_out |
1623 | |
1649 | |