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.202 by sf-exg, Wed Nov 30 10:29:51 2011 UTC vs.
Revision 1.205 by root, Tue Jun 5 19:32:29 2012 UTC

671a C<perl:string> action bound to a key, see description of the B<keysym> 671a C<perl:string> action bound to a key, see description of the B<keysym>
672resource in the @@RXVT_NAME@@(1) manpage). 672resource in the @@RXVT_NAME@@(1) manpage).
673 673
674The event is simply the action string. This interface is assumed to change 674The event is simply the action string. This interface is assumed to change
675slightly in the future. 675slightly in the future.
676
677=item on_register_command $term, $keysym, $modifiermask, $string
678
679Called after parsing a keysym resource but before registering the
680associated binding. If this hook returns TRUE the binding is not
681registered. It can be used to modify a binding by calling
682C<register_command>.
676 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
679Called just after the new window size has been calculated, but before 686Called just after the new window size has been calculated, but before
680windows are actually being resized or hints are being set. If this hook 687windows are actually being resized or hints are being set. If this hook
1093 while (my ($name, $cb) = each %hook) { 1100 while (my ($name, $cb) = each %hook) {
1094 my $htype = $HOOKTYPE{uc $name}; 1101 my $htype = $HOOKTYPE{uc $name};
1095 defined $htype 1102 defined $htype
1096 or Carp::croak "unsupported hook type '$name'"; 1103 or Carp::croak "unsupported hook type '$name'";
1097 1104
1098 $self->set_should_invoke ($htype, +1) 1105 $self->modify_should_invoke_count ($htype, +1)
1099 unless exists $self->{term}{_hook}[$htype]{$pkg}; 1106 unless exists $self->{term}{_hook}[$htype]{$pkg};
1100 1107
1101 $self->{term}{_hook}[$htype]{$pkg} = $cb; 1108 $self->{term}{_hook}[$htype]{$pkg} = $cb;
1102 } 1109 }
1103} 1110}
1109 for my $name (@hook) { 1116 for my $name (@hook) {
1110 my $htype = $HOOKTYPE{uc $name}; 1117 my $htype = $HOOKTYPE{uc $name};
1111 defined $htype 1118 defined $htype
1112 or Carp::croak "unsupported hook type '$name'"; 1119 or Carp::croak "unsupported hook type '$name'";
1113 1120
1114 $self->set_should_invoke ($htype, -1) 1121 $self->modify_should_invoke_count ($htype, -1)
1115 if delete $self->{term}{_hook}[$htype]{$pkg}; 1122 if delete $self->{term}{_hook}[$htype]{$pkg};
1116 } 1123 }
1117} 1124}
1118 1125
1119our $AUTOLOAD; 1126our $AUTOLOAD;
1393=item $success = $term->parse_keysym ($key, $octets) 1400=item $success = $term->parse_keysym ($key, $octets)
1394 1401
1395Adds a key binding exactly as specified via a resource. See the 1402Adds a key binding exactly as specified via a resource. See the
1396C<keysym> resource in the @@RXVT_NAME@@(1) manpage. 1403C<keysym> resource in the @@RXVT_NAME@@(1) manpage.
1397 1404
1405=item $term->register_command ($keysym, $modifiermask, $string)
1406
1407Adds a key binding. This is a lower level api compared to
1408C<parse_keysym>, as it expects a parsed key description, and can be
1409used only inside either the C<on_init> hook, to add a binding, or the
1410C<on_register_command> hook, to modify a parsed binding.
1411
1398=item $rend = $term->rstyle ([$new_rstyle]) 1412=item $rend = $term->rstyle ([$new_rstyle])
1399 1413
1400Return and optionally change the current rendition. Text that is output by 1414Return and optionally change the current rendition. Text that is output by
1401the terminal application will use this style. 1415the terminal application will use this style.
1402 1416
1614 1628
1615Adds the specified events to the vt event mask. Useful e.g. when you want 1629Adds the specified events to the vt event mask. Useful e.g. when you want
1616to receive pointer events all the times: 1630to receive pointer events all the times:
1617 1631
1618 $term->vt_emask_add (urxvt::PointerMotionMask); 1632 $term->vt_emask_add (urxvt::PointerMotionMask);
1633
1634=item $term->set_urgency ($set)
1635
1636Enable/disable the urgency hint on the toplevel window.
1619 1637
1620=item $term->focus_in 1638=item $term->focus_in
1621 1639
1622=item $term->focus_out 1640=item $term->focus_out
1623 1641

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines