--- rxvt-unicode/src/urxvt.pm 2006/01/06 03:40:19 1.37 +++ rxvt-unicode/src/urxvt.pm 2006/01/06 20:50:58 1.41 @@ -263,7 +263,7 @@ C action bound to it (see description of the B resource in the @@RXVT_NAME@@(1) manpage). -=item on_key_press $term, $event +=item on_key_press $term, $event, $octets =item on_key_release $term, $event @@ -273,9 +273,16 @@ =item on_motion_notify $term, $event -Called whenever the corresponding X event is received for the terminal. If +Called whenever the corresponding X event is received for the terminal If the hook returns true, then the even will be ignored by rxvt-unicode. +The event is a hash with most values as named by Xlib (see the XEvent +manpage), with the additional members C and C, which are the row +and column under the mouse cursor. + +C additionally receives the string rxvt-unicode would +output, if any, in locale-specific encoding. + subwindow. =back @@ -460,7 +467,7 @@ if ($htype == 0) { # INIT my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$LIBDIR/perl"); - for my $ext (map { split /:/, $TERM->resource ("perl_ext_$_") } 1, 2) { + for my $ext (map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2) { my @files = grep -f $_, map "$_/$ext", @dirs; if (@files) { @@ -658,16 +665,16 @@ =back -=item $cellwidth = $term->strwidth $string +=item $cellwidth = $term->strwidth ($string) Returns the number of screen-cells this string would need. Correctly accounts for wide and combining characters. -=item $octets = $term->locale_encode $string +=item $octets = $term->locale_encode ($string) Convert the given text string into the corresponding locale encoding. -=item $string = $term->locale_decode $octets +=item $string = $term->locale_decode ($octets) Convert the given locale-encoded octets into a perl string. @@ -694,6 +701,14 @@ pass characters instead of octets, you should convert your strings first to the locale-specific encoding using C<< $term->locale_encode >>. +=item $windowid = $term->parent + +Return the window id of the toplevel window. + +=item $windowid = $term->vt + +Return the window id of the terminal window. + =item $window_width = $term->width =item $window_height = $term->height