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.199 by sf-exg, Sun Nov 20 10:49:56 2011 UTC vs.
Revision 1.203 by sf-exg, Fri Dec 2 09:03:43 2011 UTC

446=item $octets 446=item $octets
447 447
448Either binary data or - more common - a text string encoded in a 448Either binary data or - more common - a text string encoded in a
449locale-specific way. 449locale-specific way.
450 450
451=item $keysym
452
453an integer that is a valid X11 keysym code. You can convert a string
454into a keysym and viceversa by using C<XStringToKeysym> and
455C<XKeysymToString>.
456
451=back 457=back
452 458
453=head2 Extension Objects 459=head2 Extension Objects
454 460
455Every perl extension is a perl class. A separate perl object is created 461Every perl extension is a perl class. A separate perl object is created
665a 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>
666resource in the @@RXVT_NAME@@(1) manpage). 672resource in the @@RXVT_NAME@@(1) manpage).
667 673
668The 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
669slightly 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>.
670 683
671=item on_resize_all_windows $term, $new_width, $new_height 684=item on_resize_all_windows $term, $new_width, $new_height
672 685
673Called just after the new window size has been calculated, but before 686Called just after the new window size has been calculated, but before
674windows 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
975sub invoke { 988sub invoke {
976 local $TERM = shift; 989 local $TERM = shift;
977 my $htype = shift; 990 my $htype = shift;
978 991
979 if ($htype == 0) { # INIT 992 if ($htype == 0) { # INIT
980 my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$LIBDIR/perl"); 993 my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$ENV{HOME}/.urxvt/ext", "$LIBDIR/perl");
981 994
982 my %ext_arg; 995 my %ext_arg;
983 996
984 { 997 {
985 my @init = @TERM_INIT; 998 my @init = @TERM_INIT;
1382 1395
1383This method should only be called during the C<on_start> hook, as there is 1396This method should only be called during the C<on_start> hook, as there is
1384only one resource database per display, and later invocations might return 1397only one resource database per display, and later invocations might return
1385the wrong resources. 1398the wrong resources.
1386 1399
1387=item $success = $term->parse_keysym ($keysym_spec, $command_string) 1400=item $success = $term->parse_keysym ($key, $octets)
1388 1401
1389Adds a keymap translation exactly as specified via a resource. See the 1402Adds a key binding exactly as specified via a resource. See the
1390C<keysym> resource in the @@RXVT_NAME@@(1) manpage. 1403C<keysym> resource in the @@RXVT_NAME@@(1) manpage.
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.
1391 1411
1392=item $rend = $term->rstyle ([$new_rstyle]) 1412=item $rend = $term->rstyle ([$new_rstyle])
1393 1413
1394Return and optionally change the current rendition. Text that is output by 1414Return and optionally change the current rendition. Text that is output by
1395the terminal application will use this style. 1415the terminal application will use this style.
1933=item $term->XMoveResizeWindow ($window, $x, $y, $width, $height) 1953=item $term->XMoveResizeWindow ($window, $x, $y, $width, $height)
1934 1954
1935=item ($x, $y, $child_window) = $term->XTranslateCoordinates ($src, $dst, $x, $y) 1955=item ($x, $y, $child_window) = $term->XTranslateCoordinates ($src, $dst, $x, $y)
1936 1956
1937=item $term->XChangeInput ($window, $add_events[, $del_events]) 1957=item $term->XChangeInput ($window, $add_events[, $del_events])
1958
1959=item $keysym = $term->XStringToKeysym ($string)
1960
1961=item $string = $term->XKeysymToString ($keysym)
1938 1962
1939Various X or X-related functions. The C<$term> object only serves as 1963Various X or X-related functions. The C<$term> object only serves as
1940the source of the display, otherwise those functions map more-or-less 1964the source of the display, otherwise those functions map more-or-less
1941directly onto the X functions of the same name. 1965directly onto the X functions of the same name.
1942 1966

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines